dockerised-php
dockerised-php copied to clipboard
php service should have depends_on web service
If the web service is started before the php service, You'll get an nginx error:
[emerg] 1:1: host not found in upstream "php" in /etc/nginx/conf.d/default.conf:12
Amending the config for web like so will correct this problem:
web:
# ... other configs
depends_on:
- php
Thanks a lot, this option helped me. Nginx cannot parse php file and send the php file to user browser with the following options.
depends_on:
- php