Closed fezfez closed 7 years ago
Docker files for PHP does not contain configuration files, even those that are installed by default. There are reasons for this, but I'm thinking about to add.
While you can add the minimum configuration:
data/php/php-fpm.conf
[global]
pid = /var/run/php7-fpm.pid
daemonize = no
log_level = notice
error_log = /dev/stderr
[www]
user = www-data
group = www-data
listen = /var/run/php7-fpm.sock
listen.allowed_clients = any
listen.backlog = 65536
listen.group = www-data
listen.mode = 0666
listen.owner = www-data
pm = dynamic
pm.start_servers = 2
pm.max_children = 10
pm.max_requests = 0
pm.min_spare_servers = 1
pm.max_spare_servers = 3
pm.process_idle_timeout = 20s;
data/php/conf.d/010-opcache.ini
zend_extension=opcache.so
[opcache]
opcache.enable = On
opcache.enable_cli = Off
; JIT specific
opcache.jit = 35
opcache.jit_buffer_size = 32M
docker run -i -v $(pwd)/data/php:/etc/php php:jit
# ... <basic configuration>
volumes:
- ./data/php:/etc/php
thanks 👍
When i run php jit tag i got this error :
How to correct this error ?
Thanks for your works !