Skip to content

Commit

Permalink
Updated nginx that uses php_backend on 127.0.0.1:9000
Browse files Browse the repository at this point in the history
  • Loading branch information
dancallan committed Nov 8, 2023
1 parent 7f03077 commit 5efd61d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
FROM nginx:stable-alpine

RUN \
apk upgrade --no-cache && \
rm -rf /var/cache/apk/*

RUN \
echo 'fastcgi_param HTTP_PROXY "";' >> /etc/nginx/fastcgi.conf && \
echo 'fastcgi_buffers 8 16k;' >> /etc/nginx/fastcgi.conf && \
Expand Down
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ events {

http {
upstream phpfpm_backend {
server fpm:9000;
server 127.0.0.1:9000;
}

include /etc/nginx/mime.types;
Expand Down

0 comments on commit 5efd61d

Please sign in to comment.