fix: make wordpress healthcheck production safe

This commit is contained in:
bisco
2026-06-25 12:53:36 +02:00
parent a835900418
commit 32edb96b40
4 changed files with 56 additions and 1 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ services:
db:
condition: service_healthy
healthcheck:
test: ["CMD", "php", "-r", "$$c=@file_get_contents('http://127.0.0.1/wp-login.php'); exit($$c===false ? 1 : 0);"]
test: ["CMD", "php", "/usr/local/bin/azionelab-healthcheck.php"]
interval: 10s
timeout: 5s
retries: 20