Files
homelabstack/stacks/monitoring/docker-compose.yml
T
ginnoir 1e2970d220 chore: add env_file: stack.env to all compose services
Portainer git-stack deployments require an explicit env_file reference
in the compose file to load variables from the repo's stack.env.
Adds env_file: [stack.env] before every service-level environment:
block across all 10 stacks.
2026-06-04 22:11:51 -05:00

38 lines
999 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
environment:
- SECRET_ENCRYPTION_KEY=${HOMARR_SECRET_ENCRYPTION_KEY}
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