buildable docker compose

This commit is contained in:
2026-06-28 13:23:00 -07:00
parent de70005b39
commit 621e8bd7b6
3 changed files with 27 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
# Render config templates with environment variables, then start nginx.
set -e
envsubst '${API_UPSTREAM}' < /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/default.conf
sed "s|__API_UPSTREAM__|${API_UPSTREAM}|g" /etc/nginx/conf.d/nginx.conf.template > /etc/nginx/conf.d/default.conf
envsubst '${API_PUBLIC_URL}' < /usr/share/nginx/html/config.json.template > /usr/share/nginx/html/config.json
exec nginx -g 'daemon off;'