fix(infra): add compose port bindings for Prometheus scraping via Tailscale

Add ports mapping (api:3000, ml:8000, node_exporter:9100) bound to
TS_IP env var (default 0.0.0.0). Inject TS_IP via deploy GH Action.

Why: containers had no host port mapping → Prometheus on telemetry
VPS (imrnes) could not scrape metrics via Tailscale IP.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
MythEclipse
2026-06-16 14:15:18 +07:00
co-authored by Claude
parent b4bd114eed
commit 94ed062026
3 changed files with 623 additions and 0 deletions
+6
View File
@@ -31,6 +31,8 @@ services:
networks:
- app-shared-net
- telemetry-net
ports:
- "${TS_IP:-0.0.0.0}:3000:3000"
env_file:
- .env
environment:
@@ -51,6 +53,8 @@ services:
image: prom/node-exporter:v1.8.2
container_name: zeavis-node-exporter
restart: unless-stopped
ports:
- "${TS_IP:-0.0.0.0}:9100:9100"
command:
- "--path.rootfs=/host"
- "--web.listen-address=:9100"
@@ -68,6 +72,8 @@ services:
networks:
- app-shared-net
- telemetry-net
ports:
- "${TS_IP:-0.0.0.0}:8000:8000"
env_file:
- .env
environment: