Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [emerg] 1#1: host not found in upstream "php-fpm:9000" in /etc/nginx/conf.d/upstream.conf:1
- RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf
- && rm /etc/nginx/conf.d/default.conf
- location ~ .php$ {
- ...
- fastcgi_pass php-upstream;
- ...
- }
- resolver 127.0.0.11;
- set $upstream php-fpm:9000;
- # nginx will now start if host is not reachable
- fastcgi_pass $upstream;
Add Comment
Please, Sign In to add comment