🐳 Set up envs for the TDrive (#19)

- remove php upstream from nginx config
- fix docker-compose configuration
This commit is contained in:
Anton Shepilov
2023-04-13 15:27:10 +02:00
committed by GitHub
parent e0615fa867
commit 01630194fc
7 changed files with 75 additions and 57 deletions
@@ -39,10 +39,8 @@ case $SSL_CERTS in
esac
NODE_HOST="${NODE_HOST:-http://node:3000}"
PHP_UPSTREAM="${PHP_UPSTREAM:-php:9000}"
export NODE_HOST
export PHP_UPSTREAM
envsubst '$${NODE_HOST} $${NGINX_LISTEN}' < /etc/nginx/sites-available/site.template > /etc/nginx/sites-enabled/site
echo "upstream php-upstream { server ${PHP_UPSTREAM}; }" > /etc/nginx/conf.d/upstream.conf
nginx -g "daemon off;"