web healthcheck

This commit is contained in:
Moritz 2023-01-10 17:41:08 +01:00
parent 012e9c2310
commit 1d19ed8fd3
1 changed files with 8 additions and 0 deletions

View File

@ -33,6 +33,14 @@ services:
- "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}"
secrets:
- admin_password
healthcheck:
test: ["CMD-SHELL", 'curl -s -N --user admin:$$(cat /run/secrets/admin_password) localhost/ocs/v2.php/apps/serverinfo/api/v1/info | grep "statuscode>200<"']
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
app:
image: nextcloud:25.0.1-fpm