diff --git a/compose.yml b/compose.yml index f487bd3..8e1a732 100644 --- a/compose.yml +++ b/compose.yml @@ -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