33 lines
706 B
YAML
33 lines
706 B
YAML
networks:
|
|
uptime_kuma:
|
|
driver: bridge
|
|
caddy_proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
uptime_kuma_data:
|
|
|
|
services:
|
|
uptime-kuma:
|
|
image: louislam/uptime-kuma:2
|
|
container_name: uptime-kuma
|
|
restart: unless-stopped
|
|
ports:
|
|
- "${UPTIME_KUMA_HOST_PORT:-3001}:3001"
|
|
volumes:
|
|
- uptime_kuma_data:/app/data
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
networks:
|
|
- uptime_kuma
|
|
- caddy_proxy
|
|
healthcheck:
|
|
test:
|
|
[
|
|
"CMD-SHELL",
|
|
"node -e \"fetch('http://127.0.0.1:3001').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\""
|
|
]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|