Utilisation d'une variable d'environnement pour le répertoire root de FrankenPHP.

This commit is contained in:
2026-02-28 10:57:51 +01:00
parent a9f904060e
commit 0e61f5cf67
3 changed files with 5 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ APACHE_ADMIN_EMAIL=""
# FrankenPHP
FRANKENPHP_VERSION="dunglas/frankenphp:1.11.2-php8.5"
FRANKENPHP_ROOT_PATH="/app/"
# Nom du fichier de configuration OPcache à utiliser
OPCACHE_CONFIG_FILE="opcache.dev.ini"
+3
View File
@@ -7,6 +7,9 @@ services:
FRANKENPHP_IMAGE: ${FRANKENPHP_VERSION}
dockerfile: docker/Dockerfile.frankenphp
environment:
FRANKENPHP_ROOT_PATH: ${FRANKENPHP_ROOT_PATH}
volumes:
- ./www:/app
- ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
+1 -1
View File
@@ -3,7 +3,7 @@
}
:80 {
root * /app/
root * {$FRANKENPHP_ROOT_PATH}
php_server {
resolve_root_symlink false
try_files {path} index.php