Skip to content

Installation with Docker Compose

NightDragon1 edited this page Nov 8, 2026 · 2 revisions

Version: applies to RCONductor 1.1. Parts marked (new in 1.1) are not in 1.0.

Panel and agent on one host in one Compose file. The repository has the same setup ready as deploy/compose/all-in-one.yaml; the file below is written out so you can adapt it.

Run the panel only in your LAN or behind a VPN. The web port speaks plain HTTP; for HTTPS see Reverse proxy with Let's Encrypt. Never publish the RCON port of a game server.

compose.yaml

services:
  panel:
    image: docker.io/nightdragon1/rconductor-panel:1
    restart: unless-stopped
    read_only: true
    cap_drop: [ALL]
    security_opt: ["no-new-privileges:true"]
    pids_limit: 256
    mem_limit: 1g
    ports:
      - "8080:8080"
    environment:
      # The agent below reaches the panel under this name; it goes into
      # the pairing token. Port 8443 stays inside the Compose network.
      RCD_AGENT_PUBLIC_ADDR: panel:8443
    volumes:
      - data:/data
      - secrets:/secrets
      - backups:/backups

  agent:
    image: docker.io/nightdragon1/rconductor-agent:1
    restart: unless-stopped
    read_only: true
    cap_drop: [ALL]
    security_opt: ["no-new-privileges:true"]
    pids_limit: 256
    mem_limit: 1g
    # Group of the Docker socket, from .env: stat -c %g /var/run/docker.sock
    group_add: ["${DOCKER_GID}"]
    environment:
      RCD_PAIRING_TOKEN: "${RCD_PAIRING_TOKEN:-}"
      RCD_AGENT_NAME: game-host-1
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - agent-secrets:/secrets

volumes:
  data:
  secrets:
  backups:
  agent-secrets:

Start

In the directory of compose.yaml:

echo "DOCKER_GID=$(stat -c %g /var/run/docker.sock)" > .env
docker compose up -d
docker compose logs panel | grep password:

DOCKER_GID is the group that owns the Docker socket. The agent runs as a non-root user and reaches the socket through this group. The first start takes a few seconds; if grep finds no password yet, run the last command again.

  1. Open http://<host>:8080 and sign in as admin with the password from the log. You are asked for a new one; the initial password is shown only once.

  2. Under Agents, choose Pair an agent, then Make token, and add the token to .env:

    echo 'RCD_PAIRING_TOKEN=rcd1....' >> .env
    docker compose up -d agent
    docker compose logs agent | grep "connected to the panel"

    Until it has a token the agent waits and says so in its log. After the pairing the token is not needed again and may stay in .env.

  3. Give your game containers the label rconductor.manage=true; the agent manages only those.

  4. Under Servers and groups, choose New server: name, game profile, host, RCON port and password, and optionally agent and container.

Updating

Update the panel first, then the agent:

docker compose pull
docker compose up -d panel
docker compose up -d agent

The volumes keep all data and the pairing. See Things to note for versions and backups.

Removing

docker compose down
# only if you want to delete all data, keys and backups:
docker compose down -v

Clone this wiki locally