From 9c04bc4d89ef50bbcba09032b7b781da6f1e144c Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 19 Dec 2021 13:28:15 +0200 Subject: [PATCH] Use nginx.conf as template for env vars --- Dockerfile | 2 +- nginx.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c2f60ea..0e81731 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM nginx:1.21.4 # TODO: use renovate-bot to send pull requests on upstream image updates -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY nginx.conf /etc/nginx/templates/default.conf.template diff --git a/nginx.conf b/nginx.conf index 1d5f18c..c9283bb 100644 --- a/nginx.conf +++ b/nginx.conf @@ -30,7 +30,7 @@ server { location ~ .php$ { fastcgi_read_timeout 300; - fastcgi_pass php:9000; + fastcgi_pass ${STACK_NAME}_php:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /app/web/$fastcgi_script_name;