chore: add deployment infrastructure

This commit is contained in:
Gleb Korotkiy
2026-06-21 11:08:30 +03:00
parent 5996c9e212
commit b99ec0c4f4
7 changed files with 259 additions and 10 deletions

13
docker/docker-entrypoint.sh Executable file
View 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 "$@"