2026-03-05 00:04:26 -06:00
|
|
|
services:
|
|
|
|
|
overlord-server:
|
2026-03-05 00:09:12 -06:00
|
|
|
image: ${DOCKER_IMAGE:-ghcr.io/vxaboveground/overlord:latest}
|
2026-03-08 03:07:23 -05:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
cache_from:
|
|
|
|
|
- type=local,src=.docker-cache/buildx
|
|
|
|
|
cache_to:
|
|
|
|
|
- type=local,dest=.docker-cache/buildx,mode=max
|
2026-03-05 00:04:26 -06:00
|
|
|
container_name: overlord-server
|
2026-03-20 18:32:21 -05:00
|
|
|
# Host networking: the container shares the host's network stack directly.
|
|
|
|
|
# Every port the server binds (5173, SOCKS5 proxies, etc.) is accessible
|
|
|
|
|
# on the host with zero overhead — no per-port proxy process.
|
|
|
|
|
network_mode: host
|
2026-03-05 00:04:26 -06:00
|
|
|
environment:
|
|
|
|
|
PORT: ${PORT:-5173}
|
|
|
|
|
HOST: ${HOST:-0.0.0.0}
|
|
|
|
|
# Optional: set an explicit initial admin account. If OVERLORD_PASS is empty,
|
|
|
|
|
# the server generates one-time bootstrap secrets and stores them in /app/data/save.json.
|
|
|
|
|
OVERLORD_USER: ${OVERLORD_USER:-admin}
|
|
|
|
|
OVERLORD_PASS: ${OVERLORD_PASS:-}
|
|
|
|
|
# Optional overrides. If empty, generated and persisted to /app/data/save.json.
|
|
|
|
|
JWT_SECRET: ${JWT_SECRET:-}
|
|
|
|
|
OVERLORD_AGENT_TOKEN: ${OVERLORD_AGENT_TOKEN:-}
|
|
|
|
|
NODE_ENV: ${NODE_ENV:-production}
|
|
|
|
|
OVERLORD_TLS_CERT: ${OVERLORD_TLS_CERT:-/app/certs/server.crt}
|
|
|
|
|
OVERLORD_TLS_KEY: ${OVERLORD_TLS_KEY:-/app/certs/server.key}
|
|
|
|
|
OVERLORD_TLS_CA: ${OVERLORD_TLS_CA:-}
|
2026-03-07 16:19:04 -06:00
|
|
|
# Set true only behind a trusted reverse proxy that terminates TLS (for example Render).
|
|
|
|
|
# Default false keeps current behavior: Overlord terminates TLS in-process.
|
|
|
|
|
OVERLORD_TLS_OFFLOAD: ${OVERLORD_TLS_OFFLOAD:-false}
|
2026-03-13 15:37:18 -05:00
|
|
|
# Cookie security mode: auto (default), true, or false.
|
|
|
|
|
# auto: Secure cookie on HTTPS requests / X-Forwarded-Proto=https.
|
|
|
|
|
OVERLORD_AUTH_COOKIE_SECURE: ${OVERLORD_AUTH_COOKIE_SECURE:-auto}
|
2026-03-07 15:14:00 -06:00
|
|
|
# Optional certbot integration (used only when NODE_ENV=production)
|
|
|
|
|
OVERLORD_TLS_CERTBOT_ENABLED: ${OVERLORD_TLS_CERTBOT_ENABLED:-false}
|
|
|
|
|
OVERLORD_TLS_CERTBOT_LIVE_PATH: ${OVERLORD_TLS_CERTBOT_LIVE_PATH:-/etc/letsencrypt/live}
|
|
|
|
|
OVERLORD_TLS_CERTBOT_DOMAIN: ${OVERLORD_TLS_CERTBOT_DOMAIN:-}
|
|
|
|
|
OVERLORD_TLS_CERTBOT_CERT_FILE: ${OVERLORD_TLS_CERTBOT_CERT_FILE:-fullchain.pem}
|
|
|
|
|
OVERLORD_TLS_CERTBOT_KEY_FILE: ${OVERLORD_TLS_CERTBOT_KEY_FILE:-privkey.pem}
|
|
|
|
|
OVERLORD_TLS_CERTBOT_CA_FILE: ${OVERLORD_TLS_CERTBOT_CA_FILE:-chain.pem}
|
2026-03-08 03:07:23 -05:00
|
|
|
OVERLORD_CLIENT_BUILD_CACHE_DIR: ${OVERLORD_CLIENT_BUILD_CACHE_DIR:-/app/client-build-cache}
|
|
|
|
|
OVERLORD_FILE_UPLOAD_INTENT_TTL_MS: ${OVERLORD_FILE_UPLOAD_INTENT_TTL_MS:-1800000}
|
|
|
|
|
OVERLORD_FILE_UPLOAD_PULL_TTL_MS: ${OVERLORD_FILE_UPLOAD_PULL_TTL_MS:-1800000}
|
2026-05-13 13:44:33 -05:00
|
|
|
# WebRTC: where Bun reaches MediaMTX HTTP (WHIP/WHEP signaling).
|
|
|
|
|
# Host networking on Linux → localhost works. WebRTC is opt-in; leave the
|
|
|
|
|
# toggle in the UI off if MediaMTX is not running.
|
|
|
|
|
OVERLORD_MEDIAMTX_URL: ${OVERLORD_MEDIAMTX_URL:-http://localhost:8889}
|
|
|
|
|
# Public address advertised to browsers/agents for ICE. Defaults to the
|
|
|
|
|
# request host (Bun rewrites the WHEP candidate list when needed).
|
|
|
|
|
OVERLORD_WEBRTC_PUBLIC_HOST: ${OVERLORD_WEBRTC_PUBLIC_HOST:-}
|
2026-03-05 00:04:26 -06:00
|
|
|
volumes:
|
2026-05-02 22:19:28 -05:00
|
|
|
# overlord-data also caches downloaded cross-compile toolchains
|
|
|
|
|
# under /app/data/toolchains, fetched on first agent build for a
|
|
|
|
|
# given target (mingw, aarch64/armv7/musl, Android NDK, ldid, UPX).
|
2026-03-05 00:04:26 -06:00
|
|
|
- overlord-data:/app/data
|
|
|
|
|
- overlord-certs:/app/certs
|
2026-03-08 03:07:23 -05:00
|
|
|
- overlord-client-build-cache:/app/client-build-cache
|
2026-04-22 13:24:05 -05:00
|
|
|
- overlord-plugins:/app/plugins
|
2026-03-07 15:14:00 -06:00
|
|
|
# Uncomment to mount host certbot certs read-only
|
|
|
|
|
# - /etc/letsencrypt:/etc/letsencrypt:ro
|
2026-03-05 00:04:26 -06:00
|
|
|
# Uncomment to use a static config file instead of env vars
|
|
|
|
|
# - ./Overlord-Server/config.json:/app/config.json:ro
|
|
|
|
|
restart: unless-stopped
|
2026-03-05 15:36:28 -06:00
|
|
|
init: true
|
|
|
|
|
security_opt:
|
|
|
|
|
- no-new-privileges:true
|
2026-03-05 00:04:26 -06:00
|
|
|
healthcheck:
|
2026-03-13 15:37:18 -05:00
|
|
|
# Use http:// when OVERLORD_TLS_OFFLOAD=true.
|
|
|
|
|
test: ["CMD-SHELL", "curl -f ${OVERLORD_HEALTHCHECK_URL:-https://localhost:5173/health} >/dev/null 2>&1 || exit 1"]
|
2026-03-05 00:04:26 -06:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 40s
|
|
|
|
|
|
2026-05-13 13:44:33 -05:00
|
|
|
mediamtx:
|
|
|
|
|
image: bluenviron/mediamtx:latest
|
|
|
|
|
container_name: overlord-mediamtx
|
|
|
|
|
# Share the host network so WebRTC ICE UDP candidates use the host's
|
|
|
|
|
# interfaces directly. Same trade-off as the main service.
|
|
|
|
|
network_mode: host
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
volumes:
|
|
|
|
|
- ./mediamtx.yml:/mediamtx.yml:ro
|
|
|
|
|
environment:
|
|
|
|
|
MTX_WEBRTCADDITIONALHOSTS: ${OVERLORD_WEBRTC_PUBLIC_HOST:-}
|
|
|
|
|
|
2026-03-05 00:04:26 -06:00
|
|
|
volumes:
|
|
|
|
|
overlord-data:
|
|
|
|
|
overlord-certs:
|
2026-03-08 03:07:23 -05:00
|
|
|
overlord-client-build-cache:
|
2026-04-22 13:24:05 -05:00
|
|
|
overlord-plugins:
|