♻️ add uptime-kuma service configuration to stack
This commit is contained in:
39
stacks/apps/uptime/stack.yml
Normal file
39
stacks/apps/uptime/stack.yml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
services:
|
||||||
|
uptime-kuma:
|
||||||
|
image: louislam/uptime-kuma:1.23.16
|
||||||
|
volumes:
|
||||||
|
- /home/doc/swarm-data/appdata/uptime:/app/data
|
||||||
|
environment:
|
||||||
|
- TZ=America/New_York
|
||||||
|
networks:
|
||||||
|
- homelab
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "node", "/app/extra/healthcheck.js"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 60s
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.hostname == p0]
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: on-failure
|
||||||
|
delay: 10s
|
||||||
|
max_attempts: 3
|
||||||
|
update_config:
|
||||||
|
parallelism: 1
|
||||||
|
delay: 10s
|
||||||
|
failure_action: rollback
|
||||||
|
order: start-first
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.uptime-kuma.rule=Host(`status.bitfrost.me`)"
|
||||||
|
- "traefik.http.routers.uptime-kuma.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.uptime-kuma.tls.certresolver=cloudflare"
|
||||||
|
- "traefik.http.services.uptime-kuma.loadbalancer.server.port=3001"
|
||||||
|
- "traefik.docker.network=homelab"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
homelab:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user