Skip to content

Commit

Permalink
Fix PHP-FPM upstream default value
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Mar 7, 2022
1 parent e51e13c commit 208a6b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docker/nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM nginx:mainline-alpine
# https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/
ENV TZ=:/etc/localtime

# default PHP-FPM upstream
ENV PHP_FPM=php-fpm

# nginx settings
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
Expand Down
2 changes: 1 addition & 1 deletion docker/nginx/upstream.conf.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
upstream php-fpm-upstream {
server ${PHP_FPM:-php-fpm}:9000;
server ${PHP_FPM}:9000;
}

0 comments on commit 208a6b6

Please sign in to comment.