Switch to runtime envsubst for JSON-based Keycloak and API URLs, update Dockerfile and entrypoint to support config injection.
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 6m47s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m9s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 2m51s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m45s

This commit is contained in:
2026-03-15 00:24:50 +01:00
parent a1bc7039cb
commit 65b4762f52
8 changed files with 389 additions and 32 deletions
+6 -2
View File
@@ -1,10 +1,14 @@
#!/bin/sh
set -e
# Ersetze ${API_BASE_URL} und ${KEYCLOAK_URL} in index.html zur Container-Startzeit.
# Caddy bekommt eine fertige, statische HTML-Datei — kein Template-Parsing mehr nötig.
# Ersetze ${API_BASE_URL} und ${KEYCLOAK_URL} in index.html und config.json zur Container-Startzeit.
# Caddy bekommt fertige, statische Dateien — kein Template-Parsing mehr nötig.
envsubst '${API_BASE_URL} ${KEYCLOAK_URL}' \
< /usr/share/caddy/index.html.tmpl \
> /usr/share/caddy/index.html
envsubst '${API_BASE_URL} ${KEYCLOAK_URL}' \
< /usr/share/caddy/config.json.tmpl \
> /usr/share/caddy/config.json
exec "$@"