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