diff --git a/abra.sh b/abra.sh index b88d2d2..0b17189 100644 --- a/abra.sh +++ b/abra.sh @@ -1,7 +1,7 @@ #!/bin/bash export ENTRYPOINT_VERSION=v2 -export NGINX_CONFIG_VERSION=v1 +export NGINX_CONFIG_VERSION=v2 export PG_BACKUP_VERSION=v1 file_env() { diff --git a/compose.yml b/compose.yml index dd5fdd3..a6c8dc3 100644 --- a/compose.yml +++ b/compose.yml @@ -73,7 +73,9 @@ services: - db_password - secret_key networks: - - internal + internal: + aliases: + - "${STACK_NAME}-app" proxy: image: nginx:stable diff --git a/nginx.conf b/nginx.conf index 8ebf8f4..50a68b2 100644 --- a/nginx.conf +++ b/nginx.conf @@ -10,7 +10,7 @@ server { add_header X-Content-Type-Options nosniff; location / { - set $upstream_app http://app:5000; + set $upstream_app http://{{ env "STACK_NAME" }}-app:5000; location /static/ { alias /liberaforms/static/;