feat: add healthcheck for api

This commit is contained in:
Philipp Rothmann 2023-02-16 10:28:55 +01:00
parent e070a5edbf
commit e6d99ff449
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,12 @@ services:
- "traefik.http.routers.${STACK_NAME}_api.rule=Host(`${DOMAIN}`) && PathPrefix(`/api/v1`, `/dav/`, `/.well-known/`)"
- "traefik.http.routers.${STACK_NAME}_api.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_api.tls.certresolver=${LETS_ENCRYPT_ENV}"
healthcheck:
test: [ "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3456/health"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
app:
image: vikunja/frontend:0.20.1