Configuration d'OPcache avec FrankenPHP.
This commit is contained in:
@@ -23,6 +23,9 @@ APACHE_ADMIN_EMAIL=""
|
|||||||
# FrankenPHP
|
# FrankenPHP
|
||||||
FRANKENPHP_VERSION="dunglas/frankenphp:1.11.2-php8.5"
|
FRANKENPHP_VERSION="dunglas/frankenphp:1.11.2-php8.5"
|
||||||
|
|
||||||
|
# Nom du fichier de configuration OPcache à utiliser
|
||||||
|
OPCACHE_CONFIG_FILE="opcache.dev.ini"
|
||||||
|
|
||||||
# PHPMyAdmin
|
# PHPMyAdmin
|
||||||
PHPMYADMIN_IMAGE="phpmyadmin:5.2-apache"
|
PHPMYADMIN_IMAGE="phpmyadmin:5.2-apache"
|
||||||
PHPMYADMIN_URL=""
|
PHPMYADMIN_URL=""
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./www:/app
|
- ./www:/app
|
||||||
- ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
|
- ./host/frankenphp/conf/Caddyfile:/etc/frankenphp/Caddyfile
|
||||||
|
- ./host/php/conf/${OPCACHE_CONFIG_FILE:-opcache.default.ini}:/usr/local/etc/php/conf.d/opcache.ini
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD-SHELL", "curl -s http://localhost/server-php-test.php || exit 1" ]
|
test: [ "CMD-SHELL", "curl -s http://localhost/server-php-test.php || exit 1" ]
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
# Configuration de OPcache pour un environnement de production
|
||||||
|
# JIT est activé et OPcache vérifie les modifications toutes les 60 secondes
|
||||||
|
|
||||||
|
opcache.enable=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.interned_strings_buffer=8
|
||||||
|
opcache.max_accelerated_files=4000
|
||||||
|
opcache.revalidate_freq=60
|
||||||
|
opcache.jit=1255
|
||||||
|
opcache.jit_buffer_size=128M
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Configuration de OPcache pour un environnement de développement
|
||||||
|
# JIT est désactivé et OPcache vérifie les modifications à chaque requête
|
||||||
|
|
||||||
|
opcache.enable=1
|
||||||
|
opcache.enable_cli=1
|
||||||
|
opcache.memory_consumption=128
|
||||||
|
opcache.interned_strings_buffer=8
|
||||||
|
opcache.max_accelerated_files=4000
|
||||||
|
opcache.validate_timestamps=0
|
||||||
|
opcache.revalidate_freq=0
|
||||||
|
opcache.jit=0
|
||||||
|
opcache.jit_buffer_size=0
|
||||||
Reference in New Issue
Block a user