lorisleiva / laravel-docker

🐳 Generic docker image for Laravel Applications
MIT License
934 stars 314 forks source link

Set php.ini parameters #114

Closed soymgomez closed 1 year ago

soymgomez commented 2 years ago

Hello,

we are using that image to run phpunit in a Gitlab pipeline but we are running into the PHP memory limit.

Is there any way to set a higher memory limit than the default?

Best regards

wijaksanapanji commented 2 years ago

add this to your before_script

echo 'memory_limit = 512M' >> /usr/local/etc/php/conf.d/docker-php-memory-limit.ini
fgilio commented 1 year ago

Worked for me, thanks!