Browse Source

healthcheck für nextcloud.

master
Olli Graf 1 week ago
parent
commit
260cef943f
  1. 6
      nextcloud/docker-compose.yml

6
nextcloud/docker-compose.yml

@ -12,6 +12,12 @@ services:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/status.php"]
interval: "30s" # alle 30 Sekunden prüfen
timeout: "10s" # max. 10 Sekunden auf Antwort warten
retries: "3" # nach 3 Fehlversuchen gilt der Container als unhealthy
start_period: "1m" # Wartezeit nach dem Start, bevor geprüft wird
volumes:
- /mnt/nextcloud/nextcloud/html:/var/www/html
- /mnt/nextcloud/nextcloud/apps:/var/www/html/custom_apps

Loading…
Cancel
Save