AvioADSB
All posts

Ultrafeeder Docker Compose Setup With AvioADSB

A docker-compose.yml for ultrafeeder that feeds adsb.lol, adsb.fi, airplanes.live and AvioADSB from one RTL-SDR, from a fresh Pi or Debian box to a verified feed.

An Ultrafeeder docker compose setup runs one container that decodes your RTL-SDR, serves a local tar1090 map, and sends the same data to several aggregators at once. This guide starts from a fresh Raspberry Pi or Debian machine and ends with a running feed to adsb.lol, adsb.fi, airplanes.live and AvioADSB, checked against the current ultrafeeder README.

You need an RTL-SDR with a 1090 MHz antenna already connected to the machine. If you do not have a receiver yet, see the Raspberry Pi receiver guide. Already running readsb without Docker? See the ADS-B aggregator comparison for how one decoder feeds several networks.

1. Install Docker

The sdr-enthusiasts project publishes an install script for Docker and the tools its containers use. Its README gives this command:

bash <(wget -q -O - https://raw.githubusercontent.com/sdr-enthusiasts/docker-install/main/docker-install.sh)

According to that README, the script installs Docker, adds your user to the docker group, updates the udev rules for RTL-SDR dongles and removes conflicting SDR drivers. Log out and back in afterwards so the group change applies. Check that Compose is available:

docker compose version

If that prints a version, you are set. If it does not, install the Docker Compose plugin from your distribution or from Docker's documentation before going on.

2. Collect your values

You need these before you write the file:

  • Antenna latitude, longitude and altitude. Altitude is the height of the antenna above sea level. Ultrafeeder accepts a number followed by m or ft, for example 15m or 45ft. MLAT needs these to be accurate.
  • Timezone in tz database format, for example Europe/Zurich.
  • A station name for MLAT_USER. The README says it can contain only letters, digits, dashes and underscores. It shows up as a friendly name on MLAT statistics at the aggregators.
  • The dongle serial number, for READSB_RTLSDR_DEVICE. The README describes this variable as selecting the device by serial number. On the host, rtl_test (from the rtl-sdr package) normally lists the dongle with its serial, shown as SN.
  • A UUID for your station:
cat /proc/sys/kernel/random/uuid

One UUID or one per aggregator

The README says you can reuse a UUID you generated for another aggregator, or generate a new one with the command above. It does not recommend one over the other. A line without its own uuid= uses the container's UUID variable. The compose file below sets UUID once as the default and also writes the UUID on the AvioADSB lines. If you want a separate identity per aggregator, add uuid= to each line instead.

Treat the UUID like a password. On AvioADSB it identifies your station, and it decides who owns the station. Do not post it in forum threads, screenshots or issue reports.

3. Write the docker-compose.yml

Create a directory and the file:

sudo mkdir -p /opt/adsb/ultrafeeder
sudo chown -R "$USER": /opt/adsb
cd /opt/adsb
nano docker-compose.yml

Paste this and replace every value in angle brackets:

services:
  ultrafeeder:
    image: ghcr.io/sdr-enthusiasts/docker-adsb-ultrafeeder:latest
    container_name: ultrafeeder
    hostname: ultrafeeder
    restart: unless-stopped
    device_cgroup_rules:
      - "c 189:* rwm"
    ports:
      - 8080:80
    environment:
      - TZ=<your-timezone>
      # SDR
      - READSB_DEVICE_TYPE=rtlsdr
      - READSB_RTLSDR_DEVICE=<dongle-serial>
      - READSB_GAIN=auto
      # Antenna location (needed for MLAT)
      - READSB_LAT=<latitude>
      - READSB_LON=<longitude>
      - READSB_ALT=<altitude>m
      # Default UUID for lines that have no uuid= of their own
      - UUID=<your-uuid>
      # Friendly name shown on MLAT statistics
      - MLAT_USER=<station-name>
      # Aggregators. Lines are separated by a semicolon. The last line has none.
      # AvioADSB MLAT note: AvioADSB accepts MLAT data but its network produces
      # no MLAT positions yet. The line costs nothing. MLAT results from the
      # other aggregators still come back to your map as normal.
      - ULTRAFEEDER_CONFIG=
        adsb,in.adsb.lol,30004,beast_reduce_plus_out;
        adsb,feed.adsb.fi,30004,beast_reduce_plus_out;
        adsb,feed.airplanes.live,30004,beast_reduce_plus_out;
        adsb,feed.avioadsb.org,30004,beast_reduce_plus_out,uuid=<your-uuid>;
        mlat,in.adsb.lol,31090;
        mlat,feed.adsb.fi,31090;
        mlat,feed.airplanes.live,31090;
        mlat,feed.avioadsb.org,31004,uuid=<your-uuid>
    volumes:
      - /opt/adsb/ultrafeeder/globe_history:/var/globe_history
      - /opt/adsb/ultrafeeder/collectd:/var/lib/collectd
      - /dev/bus/usb:/dev/bus/usb
    tmpfs:
      - /run:exec,size=256M

What the main parts do:

  • device_cgroup_rules and /dev/bus/usb give the container access to USB devices. The README's own example uses the rule c 189:* rwm and the same volume.
  • READSB_DEVICE_TYPE=rtlsdr tells readsb to use an RTL-SDR. The README lists rtlsdr, modesbeast and gnshulc as the options.
  • READSB_GAIN=auto turns on readsb's built-in automatic gain, which the README recommends and sets as the default. It may restart the decoder inside the container when it changes gain, which can show up as a disconnect and reconnect in the logs.
  • 8080:80 exposes the web interface on port 8080 of the host.
  • globe_history and collectd keep range outline, heatmap and graph data across container recreations. The README says the globe history is not deleted automatically, so clear it out now and then.
  • tmpfs: /run is part of the README's example. It matters mainly for graphs1090 and is harmless otherwise.

How the ULTRAFEEDER_CONFIG lines work

The README documents two constructs. Each entry is separated by ;, and an entry cannot itself contain ; or , inside a value.

adsb,<host>,<port>,<protocol>[,uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX][,silent_fail][,<extra-arguments>]
mlat,<host>,<port>[,<return_port>][,uuid=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX][,<extra-arguments>]

beast_reduce_plus_out is the protocol the README calls preferred for the newer aggregator services: Beast output with extra data, including the UUID. The return_port field on mlat lines is kept for old setups, and the README says almost no modern case needs it. None of the lines above use it, and AvioADSB's MLAT line does not need it either. The host, port and protocol strings for adsb.lol, adsb.fi and airplanes.live are copied from the README's aggregator table. That table does not list AvioADSB at the time of writing, so its AvioADSB lines come from the AvioADSB ADS-B page and MLAT page.

AvioADSB accepts MLAT data, but the network produces no MLAT positions yet: about a dozen clients feed it, too far apart for multilateration. Adding the MLAT line costs nothing. MLAT results from adsb.lol, adsb.fi and airplanes.live come back to your local map as normal, because ultrafeeder merges the return data of any MLAT server it connects to.

Your location in the container also goes to every MLAT server. Check it before you start, and see is feeding ADS-B data safe if you want to know what that exposes.

4. Start it

From /opt/adsb:

docker compose up -d

The first run downloads the image, which can take a minute. After you change the file later, run the same command again and Compose recreates the container.

5. Check the logs and the local map

All container logs go to standard output. The README gives this command for reading them:

docker logs -t -f ultrafeeder

The README does not list log lines that mean a feed is connected, so do not rely on a specific wording. Look for repeated connection errors naming a host, such as one of the aggregators above. A line like this, from the README, shows an MLAT client talking to its server (the numbers will differ):

[mlat-client][in.adsb.lol] peer_count:  15 outlier_percent: 4.6 bad_sync_timeout: 870

If you see nothing about an aggregator, the aggregator's own status page is the better check.

Then open the local map at http://<machine-ip>:8080/. Aircraft should appear within a minute or two if the antenna has a view. If the map is empty, adsb receiver not receiving aircraft lists the usual causes.

6. Confirm AvioADSB and claim the station

Open https://avioadsb.org/feed-status from the same network as the receiver, meaning the same public IP. It shows the ADS-B feed with messages per second and aircraft once the UUID has arrived. It does not show MLAT.

While you are signed in, add the station to your account in one click. That is also how you get a contributor API key: create it on the dashboard, as described in Get an API key. If the page shows nothing, the usual causes are a browser on a different network or on IPv6, an AvioADSB line without beast_reduce_plus_out (the protocol that carries the UUID), or outbound TCP 30004 being blocked.

FlightAware and Flightradar24

Ultrafeeder does not feed FlightAware or Flightradar24 itself. They need their own containers from sdr-enthusiasts: docker-piaware for FlightAware and docker-flightradar24 for Flightradar24. Both read Beast data from ultrafeeder.

Next steps

The feed hub lists every way to connect to AvioADSB, including datalink feeds. Open feed-status to check your feed and claim the station.