gilbertoalbino / php74-fpm-docker

Ambiente Docker teste com PHP 7.4-fpm, Xdebug, Nginx e MySQL 8
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Nginx start directory public #1

Open StephanKrauss opened 4 years ago

StephanKrauss commented 4 years ago

Hello,

i'm a beginner in docker. I will use our docker container for first test. Is there a way, that the entypoint for nginx is the directory 'public'.

The structure of my project:

config/ public/index.php env/ src/App/Controller src/App/Service src/App/Tools

...

Your sincerly

Stephan

gilbertoalbino commented 4 years ago

Hi, @StephanKrauss . Yes! You just need to update the root on line 7 in the file docker/nginx/sites/default.conf

from: root /var/www;

to: root /var/www/public;

StephanKrauss commented 4 years ago

Hello,

thanks for the quick help.

Greetings Stephan