dmstr/docker-php-yii2

Why install php in nginx if php runs in a separate container ?

Closed this issue · 1 comments

Maybe I don't understand something, but shouldn't nginx be like a reverse proxy for php ?

Actually we install nginx in a php container.

And yes, you can run it in a separate container, but you also have to take care about static files and assets, which can become very cumbersome, that's the reason we're adding nginx in the same container.