From b0ac4a0a2c1bd518d2e8e5cb0fef9ddc978d176a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A8ve=20Caillault?= Date: Tue, 24 Feb 2026 19:40:36 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20healthcheck=20pour=20le=20conten?= =?UTF-8?q?eur=20FrankenPHP=20pour=20corriger=20le=20temps=20de=20disponib?= =?UTF-8?q?ilit=C3=A9=20au=20d=C3=A9marrage.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.frankenphp.yml | 8 +++++++- host/frankenphp/conf/Caddyfile | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docker-compose.frankenphp.yml b/docker-compose.frankenphp.yml index e40b24c..41a0b83 100644 --- a/docker-compose.frankenphp.yml +++ b/docker-compose.frankenphp.yml @@ -9,4 +9,10 @@ services: volumes: - ./www:/app - - ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile \ No newline at end of file + - ./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 \ No newline at end of file diff --git a/host/frankenphp/conf/Caddyfile b/host/frankenphp/conf/Caddyfile index 3af9bac..52190af 100644 --- a/host/frankenphp/conf/Caddyfile +++ b/host/frankenphp/conf/Caddyfile @@ -4,5 +4,9 @@ :80 { root * /app/ - php_server + php_server { + resolve_root_symlink false + try_files {path} index.php + file_server off + } } \ No newline at end of file