Ajout d'un healthcheck pour le conteneur FrankenPHP pour corriger le temps de disponibilité au démarrage.
This commit is contained in:
@@ -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
|
||||
@@ -4,5 +4,9 @@
|
||||
|
||||
:80 {
|
||||
root * /app/
|
||||
php_server
|
||||
php_server {
|
||||
resolve_root_symlink false
|
||||
try_files {path} index.php
|
||||
file_server off
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user