Files
homelab/dockmon/docker-compose.yaml
T
2025-11-11 00:02:49 +01:00

35 lines
1009 B
YAML

services:
dockmon:
image: darthnorse/dockmon:latest
container_name: dockmon
restart: unless-stopped
ports:
- 8000:443
environment:
- TZ=Europe/Bratislava
volumes:
- ./dockmon_data:/app/data
- /var/run/docker.sock:/var/run/docker.sock
healthcheck:
test: ["CMD", "curl", "-k", "-f", "https://localhost:443/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
- traefik-proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.dockmon.rule=Host(`dockmon.workstation`)"
- "traefik.http.routers.dockmon.entrypoints=websecure"
- "traefik.http.services.dockmon.loadbalancer.server.port=443"
- "traefik.http.services.dockmon.loadbalancer.server.scheme=https"
- "traefik.docker.network=traefik-proxy"
- "traefik.http.routers.dockmon.tls.certresolver=le"
networks:
traefik-proxy:
external: true
volumes:
dockmon_data: