Description
Using a Docker container in backend mode causes the docker healthcheck to fail. This is because there is of course no index.php in this mode.
Server
Docker Version 6.1.0
Client
N/A
Steps to reproduce
Run a docker container in a backend mode, check docker healthcheck
Expected behaviour
A correct Healthcheck. In this case an unhealty result will not register the container in traefik.
Screenshots
IMAGE COMMAND CREATED STATUS
ghcr.io/librespeed/speedtest "docker-php-entrypoi…" 4 minutes ago Up 2 minutes (unhealthy)
[Wed Apr 29 19:15:49.336175 2026] [autoindex:error] [pid 30:tid 30] [client ::1:54620] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive
Description
Using a Docker container in backend mode causes the docker healthcheck to fail. This is because there is of course no index.php in this mode.
Server
Docker Version 6.1.0
Client
N/A
Steps to reproduce
Run a docker container in a backend mode, check docker healthcheck
Expected behaviour
A correct Healthcheck. In this case an unhealty result will not register the container in traefik.
Screenshots
IMAGE COMMAND CREATED STATUS
ghcr.io/librespeed/speedtest "docker-php-entrypoi…" 4 minutes ago Up 2 minutes (unhealthy)
[Wed Apr 29 19:15:49.336175 2026] [autoindex:error] [pid 30:tid 30] [client ::1:54620] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive