docs: clarify telemetry stack local-dev vs production separation in docker-compose.telemetry.yml

This commit is contained in:
MythEclipse
2026-06-07 21:13:15 +07:00
parent 36216601e3
commit 7e0e052200
+13 -15
View File
@@ -1,30 +1,28 @@
# ============================================================================= # =============================================================================
# ZeaVis Edu — Telemetry Stack Integration # ZeaVis Edu — Telemetry Stack Integration (LOCAL DEV ONLY)
# #
# Extends the Telemetry submodule docker-compose to share the app network so # This override connects the Telemetry submodule docker-compose to the same
# Prometheus can scrape the ZeaVis Edu services (web, api, ml). # Docker network as ZeaVis Edu services for LOCAL development on a single host.
# #
# Usage (from project root): # In PRODUCTION, the app and telemetry run on separate VPS instances
# docker compose -f telemetry/deploy/docker-compose.yml \ # connected via Tailscale. See telemetry/prometheus/targets/zeavis-edu.json
# -f docker-compose.telemetry.yml up -d # for the Tailscale IP configuration.
#
# Usage (local dev only):
# # Ensure app-shared-net exists first:
# docker network create app-shared-net
#
# # Start telemetry with app network access:
# make telemetry-up-local
# ============================================================================= # =============================================================================
networks: networks:
app-shared-net: app-shared-net:
external: true external: true
name: app-shared-net name: app-shared-net
telemetry-net:
external: true
name: telemetry-net
services: services:
# ── Telemetry services join the app network for scraping ─────────────
prometheus: prometheus:
networks: networks:
- default - default
- app-shared-net - app-shared-net
# ── ZeaVis Edu app services join the telemetry network ───────────────
# These are defined here so Prometheus can reach them without scope
# conflicts. When deployed via the root docker-compose.yml, they already
# share both networks — this override ensures local dev works too.