From 502fa49d2418896fc99c90ccf12a35c7ef6a7378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A8ve=20Caillault?= Date: Thu, 26 Feb 2026 20:09:29 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20healthcheck=20de=20?= =?UTF-8?q?FrankenPHP=20pour=20ne=20pas=20utiliser=20index.php=20mais=20un?= =?UTF-8?q?=20fichier=20sp=C3=A9cifique.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.frankenphp.yml | 7 ++++--- www/server-php-test.php | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 www/server-php-test.php diff --git a/docker-compose.frankenphp.yml b/docker-compose.frankenphp.yml index f36f66a..43068f3 100644 --- a/docker-compose.frankenphp.yml +++ b/docker-compose.frankenphp.yml @@ -12,7 +12,8 @@ services: - ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile healthcheck: - test: [ "CMD-SHELL", "curl -s http://localhost/index.php || exit 1" ] - interval: 0.2s + test: [ "CMD-SHELL", "curl -s http://localhost/server-php-test.php || exit 1" ] + interval: 30s timeout: 1s - retries: 10 \ No newline at end of file + retries: 10 + start_period: 1s diff --git a/www/server-php-test.php b/www/server-php-test.php new file mode 100644 index 0000000..bd8d833 --- /dev/null +++ b/www/server-php-test.php @@ -0,0 +1 @@ +