diff options
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index ecc2380..bd0e4dc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,14 +7,17 @@ services: restart: unless-stopped env_file: - .env + # Share the host's network stack so 127.0.0.1 reaches the TeamSpeak server + # (WebQuery 8443, voice 9987/udp) running on the host. `ports:` is ignored + # in host mode, so the app binds directly on the host instead. + network_mode: host environment: - WEB_HOST: "0.0.0.0" + # Listen on loopback only; expose it through Nginx / Caddy on the host. + WEB_HOST: "127.0.0.1" WEB_PORT: "5000" # Set to true when running behind Nginx / Caddy on the same host so # per-IP rate limits use X-Forwarded-For instead of the proxy IP. VOICE_TRUST_PROXY: "true" - ports: - - "127.0.0.1:5000:5000" volumes: - ./config.toml:/app/config.toml:ro - ./static:/app/static:ro |
