TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

What's best way to edit Nginix configuration in /etc/nginx/ (similarly php-setting.ini)? #104

Closed chotalia closed 1 year ago

chotalia commented 2 years ago

As an example if I want to use the different root folder i.e. instead of /var/www/html using /var/www/www.domain.com and two or three other settings.

  1. Should I copy the config in different folder and then mount using /nginx-server.conf when starting the container? Where is the alternative location for the config generally?

  2. Or fork the repo, edit the config?

Or am I missing some other better ways?

TrafeX commented 1 year ago

Hi @chotalia,

This project should be an example which you can fork or copy to your own project and modify to your needs. So option 2.