uptime-kuma/compose.yml

38 lines
1.2 KiB
YAML
Raw Normal View History

2022-09-13 09:36:23 +00:00
---
version: "3.8"
services:
app:
2023-03-17 12:31:03 +00:00
image: louislam/uptime-kuma:1.20.2
2022-09-13 09:36:23 +00:00
volumes:
- data:/app/data
networks:
- proxy
deploy:
2023-03-17 12:31:03 +00:00
# restart_policy:
# condition: on-failure
2022-09-13 09:36:23 +00:00
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=3001"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
## Redirect from EXTRA_DOMAINS to DOMAIN
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
2023-03-17 12:31:03 +00:00
- "coop-cloud.${STACK_NAME}.version=0.1.0+1.20.2"
# healthcheck:
# test: ["CMD-SHELL", 'curl localhost:3001']
# interval: 30s
# timeout: 10s
# retries: 5
# start_period: 2m
2022-09-13 09:36:23 +00:00
volumes:
data:
networks:
proxy:
external: true