GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wfweb/DOCKER.md at master · adecarolis/wfweb

Expand file tree

/

DOCKER.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
469 lines (358 loc) · 14.5 KB
/

DOCKER.md

Copy path

File metadata and controls

469 lines (358 loc) · 14.5 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Running wfweb in Docker

The k1fm/wfweb Docker image runs wfweb in headless mode with a web interface. Multi-arch images are published for linux/amd64 and linux/arm64.


Quick Start

LAN-connected radio (easiest)

No USB devices needed — just network access:

docker run --rm -it \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb \
  --lan 192.168.1.100 --lan-user admin --lan-pass secret

Open https://localhost:8080 in your browser (accept the self-signed certificate).

USB-connected radio

docker run --rm -it \
  --device /dev/ttyUSB0 \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb

USB-connected radio with audio

For RX/TX audio through the radio's USB audio codec:

docker run --rm -it \
  --device /dev/ttyUSB0 \
  --device /dev/snd \
  --group-add audio \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb

USB Serial Port

Auto-detection

The container tries to find an Icom radio automatically by checking USB serial numbers. If auto-detection fails (common in Docker since udev metadata may be incomplete), it falls back to /dev/ttyUSB0.

Explicit serial port

Use --serial-port to specify the device path directly:

docker run --rm -it \
  --device /dev/ttyUSB1 \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb --serial-port /dev/ttyUSB1

Device remapping

Docker can remap a host device to a different path inside the container. This is useful when the radio appears on a non-default port:

docker run --rm -it \
  --device=/dev/ttyUSB1:/dev/ttyUSB0 \
  --group-add $(stat -c %g /dev/ttyUSB1) \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb

The --group-add ensures the container process has permission to access the device regardless of its ownership on the host.


USB Audio

The IC-7300 and similar radios expose a USB Audio CODEC device for RX/TX audio. To use it from Docker:

--device /dev/snd --group-add audio

The container uses ALSA for direct hardware access (no PulseAudio daemon runs inside). The audio device is detected automatically — look for Web: Selected rig audio device: in the logs to confirm.

Audio backends

The container defaults to RtAudio (ALSA) for the internal audio system. You can override this with --audio-system:

ID Backend Notes
0 Qt Audio Requires PulseAudio — not useful in Docker
1 PortAudio Alternative, uses ALSA in container
2 RtAudio Default in Docker, direct ALSA access

LAN Connection

For radios connected via Icom's network protocol (IC-7610, IC-9700, IC-705 in Wi-Fi mode, or any radio through a wfweb server):

docker run --rm -it \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb \
  --lan 192.168.1.100 \
  --lan-user admin \
  --lan-pass secret

No --device flags are needed for LAN connections. Audio streams over the network automatically. If your radio uses a non-default CI-V address, add --civ <addr> (hex 0x94 or decimal 148).

LAN port overrides

If the remote radio or server uses non-default ports:

--lan-control 50001   # Control port (default: 50001)
--lan-serial 50002    # CI-V port (default: 50002)
--lan-audio 50003     # Audio port (default: 50003)

Rig Server Mode (--no-web)

Use --no-web to disable the web interface and enable the Icom UDP rig server instead. This lets other wfweb instances (or compatible clients) connect to the radio over the network.

The rig server uses UDP ports — you must add /udp to the Docker port mappings:

docker run --rm -it \
  --device /dev/ttyUSB0 \
  --device /dev/snd --group-add audio \
  -p 50001:50001/udp -p 50002:50002/udp -p 50003:50003/udp \
  k1fm/wfweb --serial-port /dev/ttyUSB0 --no-web

Note: -p 50001:50001 (without /udp) only maps TCP, which will not work.


Ports

Port Protocol Purpose
8080 TCP/HTTPS Web interface and WebSocket
8081 TCP/HTTP Plain HTTP REST API (scripts, microcontrollers)
50001 UDP Rig server control (--no-web mode)
50002 UDP Rig server CI-V (--no-web mode)
50003 UDP Rig server audio (--no-web mode)

Both web ports must be published (-p) for the web interface to work. A self-signed TLS certificate is generated automatically on first run.

Override the web server port with -p (CLI flag, not Docker's -p):

docker run --rm -it \
  -p 9090:9090 -p 9091:9091 \
  k1fm/wfweb -p 9090

The REST port is always web port + 1.


Persistent Configuration

The image points Qt's configuration and data roots at a single /data directory, so one volume persists everything: the settings file (/data/wfweb/wfweb.conf), the TLS certificate, the ADIF logbook, the SSTV gallery and, with --shared, the accounts and the audit log (all under /data/wfweb/wfweb/).

docker run --rm -it \
  -v wfweb-data:/data \
  --device /dev/ttyUSB0 \
  --device /dev/snd --group-add audio \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb

Upgrading from an image before the logbook: settings used to live at /root/.config/wfweb/wfweb.conf. If you had a volume mounted there, copy the file to /data/wfweb/wfweb.conf in the new volume (or simply re-enter your settings in the web UI once).

The QSO log now lives on the server. Earlier releases kept it in each browser, so an ephemeral container was harmless. With this release every browser hands its log to the server on first connect. Mount a volume at /data or that log lives only as long as the container does. wfweb detects a container without a volume: it warns in its log and in the web UI's log panel, and browsers then keep their own copy of what they log and re-send it on every connect, so nothing is lost as long as you keep using the same browsers, but a proper volume is the real fix.

You can also supply a pre-made settings file:

docker run --rm -it \
  -v /path/to/my-wfweb.conf:/config/wfweb.conf:ro \
  --device /dev/ttyUSB0 \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb -s /config/wfweb.conf

A settings file is where wfweb persists your preferences — serial port, audio device, web port, LAN address and credentials, per-radio config, and so on. You don't hand-write it; wfweb creates it on first run with sensible defaults and then saves your changes back to it from the web UI. Mounting one into the container is how you give a Docker deployment a fixed, predictable config location instead of relying on the default per-user path inside the container (which vanishes when the container exits).

If you're running multiple wfweb containers in parallel (one per radio), give each its own mounted settings file so they don't overwrite each other's state. For named profiles you want to switch between (home.conf, contest.conf, ...), just mount a different file.

If all you need is to talk to a rig on a non-default CI-V address or a different manufacturer, you don't need -s at all — use --civ <addr> and --manufacturer <id> directly.

Note: -s does not take .rig files. Those are CI-V command dictionaries for specific radio models that wfweb already loads automatically from its install's rigs/ directory based on the radio it detects on the bus.

To supply your own TLS certificate, mount it and name it with --cert and --key (PEM, unencrypted key; the certificate file may carry its chain), or place wfweb-web.crt and wfweb-web.key under /data/wfweb/wfweb/ in the volume.


Shared Station (accounts and access control)

Without --shared anyone who can reach the published port can key the transmitter. For a station reached by other people, or from outside the LAN, add the flag and keep the volume:

docker run -d --name wfweb \
  -v wfweb-data:/data \
  -p 8080:8080 -p 8081:8081 \
  k1fm/wfweb --lan 192.168.1.100 --lan-user admin --lan-pass secret --shared
docker logs wfweb | grep 'setup code'

The first start prints a setup code in the log; the first browser to enter it creates the admin account. Accounts, sessions, reservations and the audit log are kept in /data/wfweb/wfweb/shared (--shared-dir moves them), so without the volume every restart asks for a new admin. Locked out: start the container once with --shared --shared-reset-admin added and read the new code from the log.

Behind a reverse proxy that terminates TLS (Caddy, nginx, Traefik, a Cloudflare tunnel), name the proxy's address as the container sees it with --trust-proxy (with the proxy on the Docker host and the default bridge that is usually the bridge gateway, 172.17.0.1; the audit log shows the address connections arrive from), so the audit log and the login lockout see the visitor's address and not the proxy's. Do not publish 8081 beyond the LAN: it is plain HTTP and accepts API tokens. Everything else is in SHARED_STATION.md.


CLI Reference

All flags are passed after the image name:

wfweb [options]

Connection:
  --serial-port <path>    Serial port device (e.g. /dev/ttyUSB0)
  --civ <addr>            CI-V address, hex or decimal (0x94 or 148 for IC-7300)
  --manufacturer <id>     Manufacturer (0=Icom, 1=Kenwood, 2=Yaesu)

LAN mode:
  --lan <ip>              Connect via LAN (no USB needed)
  --lan-user <user>       LAN username
  --lan-pass <pass>       LAN password
  --lan-control <port>    Control port (default: 50001)
  --lan-serial <port>     CI-V port (default: 50002)
  --lan-audio <port>      Audio port (default: 50003)

Server:
  -p --port <port>        Web server HTTPS port (default: 8080)
  -S --no-web             Disable web server, enable rig server
  --rigctld-port <port>   Enable Hamlib rigctld TCP server (default off)
  --rigctld-bind-all      Bind rigctld to all interfaces (default localhost)
  --no-rigctld            Disable rigctld even if enabled in settings
  --logbook <file>        ADIF logbook path (default /data/wfweb/wfweb/logbook.adi)
  --remote-log <host[:port]>  Send logged QSOs to an external logging program
                          (GridTracker, JTAlert, ... via WSJT-X UDP; port 2237)
  --no-remote-log         Disable remote logging even if enabled in settings
  --remote-log-decodes    Also forward FT8/FT4 decodes to the remote logger
  --sstv-dir <dir>        SSTV gallery (default /data/wfweb/wfweb/sstv)
  --cert <file> --key <file>  Serve HTTPS with your own certificate and key
  -n --name <tag>         Name shown in the top bar and the browser tab
  --no-autoconnect        Start with the LAN session closed (also
                          WFWEB_NO_AUTOCONNECT=1)

Shared Station:
  --shared                Accounts, login and access control
  --shared-dir <dir>      Accounts, sessions, audit log
                          (default /data/wfweb/wfweb/shared)
  --shared-reset-admin    Print a setup code that resets or creates an admin
  --trust-proxy <cidr>    Reverse proxy whose X-Forwarded-For / -Proto
                          headers are trusted (comma separated)

Audio:
  --audio-system <id>     Audio backend (0=Qt, 1=PortAudio, 2=RtAudio)
  --audio-device <name>   Rig audio device by name; 'list' prints them

General:
  -s --settings <file>    Path to a wfweb settings file (see "pre-made
                          settings file" above). Does NOT accept .rig
                          files. Most users don't need this flag.
  -l --logfile <file>     Log file path
  --no-tui                Plain log instead of the terminal status page
                          (already the default in this image)
  -b --background         Run as daemon
  -d --debug [file]       Enable debug logging (optionally to a file)
  -v --version            Show version

Common CI-V addresses

Radio Decimal Hex
IC-7300 148 0x94
IC-7300 Mk2 130 0x82
IC-705 164 0xA4
IC-7610 152 0x98
IC-9700 162 0xA2
IC-785x 142 0x8E

Terminal status page

Outside Docker, wfweb started from an interactive terminal shows a status page (URLs, rig, ports) instead of the scrolling log. The image turns it off with WFWEB_NO_TUI=1, so docker run -it and docker logs show the plain log: the addresses on the page would be the container's, not the host's. Add -e WFWEB_NO_TUI=0 to see it anyway.


Docker Compose

Example docker-compose.yml for a USB-connected radio with audio:

services:
  wfweb:
    image: k1fm/wfweb
    restart: unless-stopped
    ports:
      - "8080:8080"
      - "8081:8081"
    devices:
      - /dev/ttyUSB0:/dev/ttyUSB0
      - /dev/snd:/dev/snd
    group_add:
      - audio
    volumes:
      - wfweb-data:/data
    command: ["--serial-port", "/dev/ttyUSB0"]

volumes:
  wfweb-data:

For LAN mode:

services:
  wfweb:
    image: k1fm/wfweb
    restart: unless-stopped
    ports:
      - "8080:8080"
      - "8081:8081"
    volumes:
      - wfweb-data:/data
    command:
      - "--lan"
      - "192.168.1.100"
      - "--lan-user"
      - "admin"
      - "--lan-pass"
      - "secret"

volumes:
  wfweb-data:

Building Locally

docker build -f docker/Dockerfile -t wfweb .
docker run --rm -it --device /dev/ttyUSB0 -p 8080:8080 -p 8081:8081 wfweb

The build uses a multi-stage process: Ubuntu 24.04 for compilation, Ubuntu 25.10 for the runtime image. The final image is roughly 150 MB.


Troubleshooting

No serial port detected

Could not find an Icom serial port. Falling back to OS default.

Use --serial-port /dev/ttyUSBx to specify the device explicitly. Verify the device is passed to the container with --device.

No audio devices found

<NONE> Audio input device default Not found

Ensure you pass --device /dev/snd and --group-add audio. Check that the USB audio device is visible on the host with aplay -l.

PulseAudio connection errors

The container uses ALSA directly. If you see PulseAudio warnings, they are harmless — the system falls back to ALSA automatically.

Self-signed certificate warning

The container generates a self-signed TLS certificate on first run. Your browser will show a security warning — this is expected. Accept the certificate to proceed, or mount your own certificate files.

Audio works on host but not in container

The container's Qt audio backend uses ALSA directly instead of PulseAudio. Ensure /dev/snd is passed and the audio group is added. The logs should show Web: Selected rig audio device: when the USB codec is found.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.