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
+6
View File
@@ -10,3 +10,9 @@ services:
volumes: volumes:
- ./www:/app - ./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 { :80 {
root * /app/ root * /app/
php_server php_server {
resolve_root_symlink false
try_files {path} index.php
file_server off
}
} }