Skip to content

Docker Compose (Manual)

Deploying via Docker Compose is the standard and most flexible way to host Spokes on any Linux machine when you already run your own reverse proxy.

  • A Linux host with Docker and Docker Compose installed.
  • A static IP assigned to your host machine on your local network (LAN).
  • You have decided which ports you want to use for the Web UI and LiveKit.

Optimize Docker for Lowest Voice Latency & Log Rotation (Optional)

Section titled “Optimize Docker for Lowest Voice Latency & Log Rotation (Optional)”

Spokes uses LiveKit UDP multiplexing across just 8 UDP ports (30000-30007), so default Docker works cleanly even on 1 GB RAM servers without memory issues.

If you want the lowest possible UDP packet latency (routing via kernel iptables instead of Docker's userland proxy) and automatic Docker log rotation so logs never fill your disk, you can optionally add the following to /etc/docker/daemon.json:

{
"userland-proxy": false,
"log-driver": "json-file",
"log-opts": {
"max-size": "50m",
"max-file": "3"
}
}

Then restart Docker: sudo systemctl restart docker.

Create a docker-compose.yml file in an empty directory on your server and paste the following configuration. Replace the mapped ports with your custom ports if they differ from the defaults:

services:
spokes:
image: ghcr.io/pcbeeqc/spokes:latest
container_name: spokes_server
restart: unless-stopped
ports:
# Web UI and API (Can be mapped to any host port, e.g., "80:8080")
- "8080:8080"
# LiveKit TCP Fallback (Must be mapped 1-to-1)
- "7881:7881"
# LiveKit UDP Mux Range (Must be mapped 1-to-1)
- "30000-30007:30000-30007/udp"
volumes:
# Persistent data storage (databases, configuration, uploads)
- ./spokes-data:/data
environment:
# Required: Master password used to encrypt server secrets, backups, and public channel escrow
- SPOKES_MASTER_PASSWORD=YourSecureMasterPasswordHere

Run the following command to pull the latest image and start the container in the background:

Terminal window
docker compose up -d

Once the container is running, navigate to the web interface (e.g., http://your-server-ip:8080) to complete the Setup Wizard!


Now that your Spokes container is running, it's time to secure it and configure your network: