Docker Compose (All-in-One)
The All-in-One method is the easiest way to host Spokes on a generic Linux machine. By using this configuration, you get:
- Automated SSL Certificates via a bundled Caddy reverse proxy.
- Automated Server Updates via a bundled Watchtower container that lets you update your server with a single click in the UI (or automatically when new versions are released).
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).
- TCP ports
80,443, and7881, plus UDP ports30000-30007must be available and forwarded on your host. - A domain name (e.g.,
spokes.yourdomain.com) pointing to your server's public IP address.
Installation
Section titled “Installation”We provide an installation script that configures your Docker daemon, applies Linux UDP buffer optimizations for real-time voice and video, generates random passwords and tokens in /opt/spokes/.env, and creates the docker-compose.yml and Caddyfile for you.
Run the following command on your Linux server:
curl -fsSL https://spokes.sh/install.sh | sudo bashThe script places all of your configuration files in /opt/spokes.
Starting the Server
Section titled “Starting the Server”Once the installation script completes, navigate to your new directory and start the containers:
cd /opt/spokesdocker compose up -dNote: It may take 1 to 2 minutes for the Spokes server to initialize on first boot.
Next Steps
Section titled “Next Steps”Now that your Spokes container is running with its bundled Caddy reverse proxy, you can complete the initial configuration in your browser:
- The Setup Wizard: Complete the initial configuration and set up your identity provider.
