diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-11-01 12:30:02 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-11-01 12:30:02 -0700 |
| commit | 5d4703302167fe2f06c2fcbc2d2a5d1d247c7ca0 (patch) | |
| tree | abbf37755010e1d67b849207d3b4b9c5dfc1a93a | |
| parent | 69b7b1cde8b144401c8eab05e6a80605c38f5952 (diff) | |
add network mode host
| -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 |
