feat: add healthcheck for api
This commit is contained in:
parent
e070a5edbf
commit
e6d99ff449
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue