Add Uptime Kuma deployment
This commit is contained in:
32
docker-compose.yml
Normal file
32
docker-compose.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
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
|
||||
Reference in New Issue
Block a user