StephenMiracle/frankenwp

Make opcache values configurable

Opened this issue · 3 comments

Would be nice if the opcache values were configurable. I'm looking to run WP on a low end server and 128mb is too much memory to allocate to opcache for me.

[ echo 'opcache.memory_consumption=128'; ](https://github.com/StephenMiracle/frankenwp/blob/fd4bda4476d36e351059f8e05a4349645b97ff45/Dockerfile#L88)

Ya. This makes sense. Will get it updated.

I managed to solve this with docker compose. You would need a newer version of Docker compose. Config would look something like this.

services:
  wordpress:
  ...
  configs: 
    - source: php_ini
      target: /dest/to/php.ini
configs:
  php_ini:
    content: |
       insert-php-ini-content-here-line1
       insert-php-ini-content-here-line2

hm. This is an interesting solution. another similar solution is to do something like the following. You would just need to save that custom.ini locally. It is a similar approach to examples/debug

services:
  wordpress:
    ...
    volumes:
      - ./custom.ini /usr/local/etc/php/conf.d/custom.ini