Guest User

Untitled

a guest
Oct 15th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. [emerg] 1#1: host not found in upstream "php-fpm:9000" in /etc/nginx/conf.d/upstream.conf:1
  2.  
  3. RUN echo "upstream php-upstream { server ${PHP_UPSTREAM_CONTAINER}:${PHP_UPSTREAM_PORT}; }" > /etc/nginx/conf.d/upstream.conf
  4. && rm /etc/nginx/conf.d/default.conf
  5.  
  6. location ~ .php$ {
  7. ...
  8. fastcgi_pass php-upstream;
  9. ...
  10. }
  11.  
  12. resolver 127.0.0.11;
  13. set $upstream php-fpm:9000;
  14. # nginx will now start if host is not reachable
  15. fastcgi_pass $upstream;
Add Comment
Please, Sign In to add comment