From 4d92c254acca27838402f26f785b3c6733d17bd3 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Fri, 15 May 2026 21:01:15 -0300 Subject: [PATCH] chore(docker): join bot+backend to shared lucky-monitoring network Lets the homelab Prometheus container scrape /metrics on lucky-bot:9091 and lucky-backend:5000 without publishing those ports to the host. Lucky owns the network (declared here); homelab joins it as `external: true` in compose/monitoring.yml. See homelab PR #135. Pairs with #873 (bot metrics) and #875 (backend metrics). --- docker-compose.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 7f6a26534..3451b9f45 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -125,6 +125,10 @@ services: - ./logs:/app/logs networks: - lucky-network + # Shared monitoring network so the homelab Prometheus + # container can scrape /metrics on port 9091 without + # exposing it on the host. See homelab PR #135. + - lucky-monitoring logging: driver: "json-file" options: @@ -160,6 +164,10 @@ services: WEBAPP_BACKEND_URL: ${WEBAPP_BACKEND_URL:-} networks: - lucky-network + # Shared monitoring network so the homelab Prometheus + # container can scrape /metrics on the backend without + # exposing it on the host. See homelab PR #135. + - lucky-monitoring logging: driver: "json-file" options: @@ -260,3 +268,9 @@ volumes: networks: lucky-network: driver: bridge + # External network shared with the homelab monitoring stack + # (Prometheus, Grafana). Lucky owns/creates it; homelab joins it + # as `external: true`. See homelab PR #135. + lucky-monitoring: + name: lucky-monitoring + driver: bridge