Skip to content

Commit 31c77e8

Browse files
committed
Changed PHP-FPM host to IPv4 address to avoid connecting over IPv6
1 parent acdeb2c commit 31c77e8

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Docker PHP-FPM 7.1 & Nginx 1.10 on Alpine Linux
22
==============================================
33
Example PHP-FPM 7.1 & Nginx 1.10 setup for Docker, build on [Alpine Linux](http://www.alpinelinux.org/).
4-
The image is only +/- 60MB large.
4+
The image is only +/- 35MB large.
55

66

77
[![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:
1313
docker run -p 80:80 trafex/alpine-nginx-php7
1414

1515
See the PHP info on http://localhost, or the static html page on http://localhost/test.html
16-
17-
Resources & inspiration
18-
-----------------------
19-
https://ejosh.co/de/2015/09/how-to-link-docker-containers-together
20-
https://github.com/johanan/Ansible-and-Docker

config/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ http {
4747
location ~ \.php$ {
4848
try_files $uri =404;
4949
fastcgi_split_path_info ^(.+\.php)(/.+)$;
50-
fastcgi_pass localhost:9000;
50+
fastcgi_pass 127.0.0.1:9000;
5151
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
5252
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
5353
fastcgi_index index.php;

0 commit comments

Comments
 (0)