diff --git a/README.md b/README.md index 7b62d55..bec08ff 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Docker PHP-FPM 7.1 & Nginx 1.10 on Alpine Linux ============================================== Example PHP-FPM 7.1 & Nginx 1.10 setup for Docker, build on [Alpine Linux](http://www.alpinelinux.org/). -The image is only +/- 60MB large. +The image is only +/- 35MB large. [![Docker Pulls](https://img.shields.io/docker/pulls/trafex/alpine-nginx-php7.svg)](https://hub.docker.com/r/trafex/alpine-nginx-php7/) @@ -13,8 +13,3 @@ Start the Docker containers: docker run -p 80:80 trafex/alpine-nginx-php7 See the PHP info on http://localhost, or the static html page on http://localhost/test.html - -Resources & inspiration ------------------------ -https://ejosh.co/de/2015/09/how-to-link-docker-containers-together -https://github.com/johanan/Ansible-and-Docker diff --git a/config/nginx.conf b/config/nginx.conf index 797eff7..b35ea5a 100644 --- a/config/nginx.conf +++ b/config/nginx.conf @@ -47,7 +47,7 @@ http { location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass localhost:9000; + fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_index index.php;