docker-lamp icon indicating copy to clipboard operation
docker-lamp copied to clipboard

php.ini resets when container restarts

Open ItsNoted opened this issue 4 years ago • 2 comments

I made some edits to the php.ini and whenever the server restarts the file seems to reset. This is not good for my use case. Can I change this?

ItsNoted avatar Aug 04 '21 19:08 ItsNoted

Hi @geekedtv, you have a couple of options, you could use a volume to replace the php.ini file with a local one when you launch the image, or you can use a custom Dockerfile where you overwrite the php.ini file and you build an image for yourself which you use

mattrayner avatar Sep 19 '21 21:09 mattrayner