Ajout d'un healthcheck pour le conteneur FrankenPHP pour corriger le temps de disponibilité au démarrage.

This commit is contained in:
2026-02-24 19:40:36 +01:00
parent e999b5c7ce
commit b0ac4a0a2c
2 changed files with 12 additions and 2 deletions
+7 -1
View File
@@ -9,4 +9,10 @@ services:
volumes:
- ./www:/app
- ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
- ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
healthcheck:
test: [ "CMD-SHELL", "curl -s http://localhost/index.php || exit 1" ]
interval: 1s
timeout: 1s
retries: 10
+5 -1
View File
@@ -4,5 +4,9 @@
:80 {
root * /app/
php_server
php_server {
resolve_root_symlink false
try_files {path} index.php
file_server off
}
}