add healthcheck
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Simon 2024-11-25 17:46:59 +01:00
parent 014abccba6
commit e3e08d0b1d

View File

@ -26,12 +26,12 @@ services:
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.1.0+2024.10.0"
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost"]
# interval: 30s
# timeout: 10s
# retries: 10
# start_period: 1m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
db:
image: postgres:12