Browse Source

healthcheck

master
Olli Graf 5 days ago
parent
commit
7b7899fde7
  1. 3
      nextcloud/docker-compose.yml

3
nextcloud/docker-compose.yml

@ -13,7 +13,8 @@ services:
- MYSQL_USER=${MYSQL_USER}
- MYSQL_HOST=${MYSQL_HOST}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/status.php"]
test: ["CMD-SHELL", "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

Loading…
Cancel
Save