Commit bb305ef1582bdf23556b6b7222dbaa9362521cd7

Authored by Eder Soares
1 parent 0cd04ce8
Exists in 2.8 and in 7 other branches 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7

Utiliza upstream para customização do PHP

docker/nginx/Dockerfile
... ... @@ -5,3 +5,4 @@ MAINTAINER Eder Soares
5 5 RUN apt-get update -y
6 6  
7 7 COPY default.conf /etc/nginx/conf.d/default.conf
  8 +COPY upstream.conf /etc/nginx/conf.d/upstream.conf
... ...
docker/nginx/default.conf
... ... @@ -32,7 +32,7 @@ server {
32 32  
33 33 location ~ \.php {
34 34 fastcgi_split_path_info ^(.+\.php)(/.+)$;
35   - fastcgi_pass php:9000;
  35 + fastcgi_pass php-fpm;
36 36 fastcgi_index index.php;
37 37 include fastcgi_params;
38 38 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
... ...
docker/nginx/upstream.conf 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +upstream php-fpm {
  2 + server php:9000;
  3 +}
... ...