Files
homelabstack/stacks/monitoring/docker-compose.yml
T
ginnoir 7aa95fa00a refactor: pure env_file stack.env convention across all stacks
Every service now reads stack.env via env_file with container-exact var
names — no ${VAR} parse-time interpolation, no Portainer UI env vars
(except stacks/dev, kept on UI-env interpolation as documented exception).

- media: drop PUID/PGID/TZ env lines (env_file covers); resolve ${ROOT}
- foundry: secrets via env_file; FOUNDRY_PATCH_URLS -> CONTAINER_PATCH_URLS
- monitoring: HOMARR_SECRET_ENCRYPTION_KEY -> SECRET_ENCRYPTION_KEY
- notify: FRESHRSS_USER composed in stack.env; TZ via env_file
- owncloud: container-exact OWNCLOUD_*/MYSQL_* keys; runtime $$ healthcheck
- resume/famapp: composites (DATABASE_URL etc.) written out in stack.env
- authentik: container-exact keys; image tag pinned in compose
- notes: couchdb creds via env_file
- remote: gains stack.env (no secrets; convention completeness)
- CLAUDE.md: env convention, valhalla-lab registration-only note, correct
  on-host Portainer working-copy path (/config/portainer/compose/<id>)

Validated with docker compose config on valhalla for all 15 stacks.
2026-06-09 16:03:47 -05:00

36 lines
920 B
YAML

# monitoring stack — Uptime Kuma + Homarr dashboard.
# (Named "monitoring" to avoid confusion with the raw-compose management plane.)
# Both are bind-mounted and proxied internal-only; both join edge.
services:
uptime-kuma:
container_name: uptime_kuma
image: louislam/uptime-kuma:2
restart: unless-stopped
networks: [edge]
ports:
- "3001:3001"
volumes:
- /config/uptime-kuma:/app/data
- /var/run/docker.sock:/var/run/docker.sock:ro
homarr:
container_name: homarr
image: ghcr.io/homarr-labs/homarr:latest
restart: unless-stopped
networks: [edge]
env_file:
- stack.env
ports:
- "7575:7575"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /config/homarr/configs:/app/data/configs
- /config/homarr/icons:/app/public/icons
- /config/homarr/data:/data
networks:
edge:
name: edge
external: true