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.
Prerequisites
Section titled “Prerequisites”- 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.
docker-compose.yml
Section titled “docker-compose.yml”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=YourSecureMasterPasswordHereStart the Server
Section titled “Start the Server”Run the following command to pull the latest image and start the container in the background:
docker compose up -dOnce the container is running, navigate to the web interface (e.g., http://your-server-ip:8080) to complete the Setup Wizard!
Next Steps
Section titled “Next Steps”Now that your Spokes container is running, it's time to secure it and configure your network:
- Reverse Proxy Setup: Expose Spokes securely via HTTPS using Cloudflare Tunnels or Nginx Proxy Manager.
- Network Routing: Configure port forwarding for LiveKit voice and video.
- The Setup Wizard: Complete the initial configuration and set up your identity provider.
- Connect with Official Client Apps: Download the official native iOS (Apple App Store), Android (Google Play), Windows, macOS, and Linux apps (or use the Web/PWA client) and point them at your server URL.
