Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make opcache values configurable #24

Open
arhue opened this issue Jun 2, 2024 · 3 comments
Open

Make opcache values configurable #24

arhue opened this issue Jun 2, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@arhue
Copy link

arhue commented Jun 2, 2024

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)

@StephenMiracle StephenMiracle self-assigned this Jun 3, 2024
@StephenMiracle StephenMiracle added the enhancement New feature or request label Jun 3, 2024
@StephenMiracle
Copy link
Owner

Ya. This makes sense. Will get it updated.

@arhue
Copy link
Author

arhue commented Jun 3, 2024

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

@StephenMiracle
Copy link
Owner

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 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants