From 5d4703302167fe2f06c2fcbc2d2a5d1d247c7ca0 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Sun, 1 Nov 2026 12:30:02 -0700 Subject: add network mode host --- docker-compose.yml | 9 ++++++--- 1 file 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 -- cgit v1.2.3