SAN NETWORK · RECEIVER CONNECTION GUIDES
SAN Network — Ultrafeeder and AIS-catcher with Docker Compose
Keep your existing feeds and add SAN Network as an additional destination. This repository contains a small Python adapter, Dockerfile and two opt-in Compose services. SAN Network is a family-run, non-commercial community project: https://www.sannetwork.net/join
Which setup do I need?
| Existing receiver | Connexion | Guide |
| Ultrafeeder / readsb / tar1090 | Read local aircraft.json, convert and send HTTPS JSON | Ultrafeeder |
| AIS-catcher | Send its HTTP JSON batch to the local adapter; adapter sends SAN vessels JSON | AIS-catcher |
The HTTPS endpoints below accept normalized JSON. Direct ADS-B Beast is separately available through a station-specific line in the SAN member panel. Raw NMEA is not accepted at these HTTPS endpoints. Do not add a guessed SAN host/port to ULTRAFEEDER_CONFIG. The adapter converts formats; it does not decode RF or take exclusive access to an SDR. Only send data you own or have permission to share. Use a local-only decoder source, not another aggregator's dataset. The ADS-B adapter excludes MLAT and explicitly identified rebroadcast sources by default; verify your local JSON contains your own reception.
Before starting
- Sign in to SAN Network and open the member/API portal linked from the Feed Data page. Create a Send data / inbound key for ADS-B and/or AIS. Use a separate key for each service; an outbound/read key will not work. Complete SAN's data-sharing declaration yourself.
- Your existing decoder must already receive valid positions. Keep all existing destinations and settings.
- Install Docker Engine and Docker Compose v2 on the receiver computer. The adapter image supports the Python base image's ARM64 and AMD64 platforms; run on a Raspberry Pi or Linux host with internet access. ARM64 was not hardware-tested in this release.
- Download this repository, then prepare local files:
git clone https://github.com/Sannetworktr/san-network-docker-feeders.git
cd san-network-docker-feeders
mkdir -p secrets
chmod 700 secrets
touch secrets/adsb.key secrets/ais.key
chmod 600 secrets/*.key
Open each required .key file in a local editor and paste its matching inbound key. Do not paste keys into chat, screenshots, Compose YAML, GitHub or command arguments. Leave the unused service file empty. Once saved:
# Compose secrets are file-backed on ordinary Docker Compose.
# The adapter runs as UID 65532 and must be able to read the mounted files.
# The parent directory remains private (0700).
chmod 444 secrets/*.key
docker network ls
Create .env in this directory, replacing the example with the existing Docker network shared by your receiver containers:
RECEIVER_NETWORK=your_receiver_project_default
ULTRAFEEDER_URL=http://ultrafeeder/data/aircraft.json
ultrafeeder must be your actual Compose service name or network alias. Container HTTP port is normally 80, even when the host maps 8080:80. localhost inside the adapter refers to the adapter, not the host or decoder. Both adapters join the external network from .env. Do not rename, remove or recreate your receiver's existing network. If the decoder uses host networking, this bridge's default network example needs adapting; ask us with your Compose layout (remove secrets).
1. Ultrafeeder / ADS-B
Readsb's local JSON contains now, aircraft, hex, coordinates and ages. The bridge drops invalid/stale positions and rotates snapshots of at most 100 positions every 15 seconds. With more than 100 simultaneously valid positions, each request is a rotating subset, not a full-fidelity stream.
docker compose --profile adsb config --quiet
docker compose --profile adsb build san-adsb
docker compose --profile adsb up -d san-adsb
docker compose logs --tail=30 san-adsb
The equivalent data path is:
your antenna → existing Ultrafeeder → /data/aircraft.json
→ san-adsb adapter → HTTPS POST https://ingest.sannetwork.net/api/contribute/adsb
The adapter reads only from the source URL; it does not change ULTRAFEEDER_CONFIG or existing feed destinations. It never opens a public input port.
2. AIS-catcher / AIS
Start the local AIS adapter first:
docker compose --profile ais config --quiet
docker compose --profile ais build san-ais
docker compose --profile ais up -d san-ais
In your existing AIS-catcher service, preserve its input and existing outputs. Add this additional HTTP output to its existing AIS-catcher command arguments:
-H http://san-ais:8088/ais interval 15
For a Compose service using an argument-list command, append these tokens to the existing list (this fragment is not a replacement for your entire command):
# Append to your existing command list:
# ...existing device/input/output arguments...,
# "-H", "http://san-ais:8088/ais", "interval", "15"
AIS-catcher and san-ais must share RECEIVER_NETWORK. Apply the change using your receiver project's Compose file and actual service name, for example:
# Run in your receiver project's directory; adapt the service name.
docker compose up -d ais-catcher
This recreates only the selected decoder service and briefly interrupts its reception. Do not replace a configured command with only the new output. AIS-catcher managed mode or wrapper images such as docker-shipfeeder may generate their own command; add the extra HTTP output using that image's supported custom-output configuration. Verify the effective AIS-catcher command contains -H with the local adapter address. If unsure, send us the image name and redacted Compose fragment.
antenna → existing AIS-catcher → -H HTTP JSON batch (`jsonaiscatcher` / `msgs`)
→ san-ais:8088/ais → HTTPS POST https://ingest.sannetwork.net/api/contribute/ais
The internal /ais listener accepts only AIS-catcher batches. queued_positions means received by the adapter, not yet accepted by SAN. Position-bearing AIS types 1/2/3/18/19/27 with scaled coordinates and recent rxtime are accepted. Static-only messages, stale positions, invalid MMSIs and unavailable heading/speed values are omitted. No raw NMEA decoding is attempted. No host ports: mapping is required or provided.
Verify that SAN is actually accepting data
docker compose --profile adsb --profile ais ps
docker compose logs --tail=50 san-adsb san-ais
docker compose exec san-adsb python -c "import urllib.request; print(urllib.request.urlopen('http://127.0.0.1:8088/health').read().decode())"
docker compose exec san-ais python -c "import urllib.request; print(urllib.request.urlopen('http://127.0.0.1:8088/health').read().decode())"
Use only the service(s) you started. A successful upstream response produces a log like:
{"service":"adsb","state":"accepted","accepted":1}
accepted is the number of positions accepted by SAN in that request. A running container or HTTP 202 from /ais alone is insufficient. last_accepted is Unix time; the container health check requires a successful acceptance within 180 seconds. An idle receiver may become unhealthy while no positions are available. In the SAN member panel, check the matching inbound key/station's last received time and accepted records. Claim/associate your station if requested by the panel before expecting public map attribution.
| State / symptom | What to check |
waiting_for_positions | Source has fresh coordinates; AIS has recent scaled position messages, not just static messages. |
upstream_http_401 / 403 | Correct inbound service key, active membership, key not revoked/paused, allowed IP settings. Retry slows to 5 minutes. |
upstream_http_429 | SAN quota/rate limit; adapter honours numeric Retry-After and never sends faster than every 15 seconds. |
error_URLError | Decoder service name/network, DNS or outbound HTTPS. |
error_ValueError | Old source timestamp, invalid payload or SAN response without a positive accepted count. |
| Secret file unreadable | Check private directory, mounted file permissions and correct file name. Never post its contents. |
The bridge sends bounded snapshots; it is not an archival queue. An outage loses intermediate positions. A stopped/old receiver is not made to look live by substituting fresh aircraft timestamps. Keys are not logged; outbound authenticated requests do not follow redirects.
Stop / remove only this addition
docker compose stop san-adsb san-ais
docker compose rm -f san-adsb san-ais
Remove the extra local -H output from your existing AIS-catcher command if you stop the AIS adapter. Revoke the relevant SAN inbound key in your account if you no longer want to contribute. Existing networks remain configured.
Tests and limitations
python3 -m unittest -v test_bridge
Tests use synthetic fixtures only on loopback, including readsb fetch → adapter → mock SAN HTTP acceptance and AIS-catcher HTTP input → adapter → mock SAN HTTP acceptance. They check stale positions, MLAT exclusion, coordinate validation, scaled AIS units, invalid heading and newest-message selection. See TEST-RESULTS.md for the exact checks performed; this is not a claim of testing every receiver model or a live receiver-to-production feed.
Official references
- Ultrafeeder ports and JSON: https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder#ports
- readsb JSON format: https://github.com/wiedehopf/readsb/blob/dev/README-json.md
- AIS-catcher HTTP output and native JSON example: https://docs.aiscatcher.org/configuration/output/HTTP/
- AIS-catcher Docker installation: https://docs.aiscatcher.org/installation/docker/
Updated 30 November 2026 · Test results