chore: add deployment infrastructure
This commit is contained in:
13
docker/docker-entrypoint.sh
Executable file
13
docker/docker-entrypoint.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
: "${BACKEND_UPSTREAM:?BACKEND_UPSTREAM is required (example: http://analytical-panel-backend:8000)}"
|
||||
|
||||
BACKEND_UPSTREAM="${BACKEND_UPSTREAM%/}"
|
||||
export BACKEND_UPSTREAM
|
||||
|
||||
envsubst '${BACKEND_UPSTREAM}' \
|
||||
< /etc/nginx/templates/default.conf.template \
|
||||
> /etc/nginx/conf.d/default.conf
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user