add a shell command to use the env variables

This commit is contained in:
2025-07-17 13:17:22 +02:00
parent d4adccb921
commit 136f5f31d0

View File

@@ -10,6 +10,12 @@ services:
environment: environment:
- MEDIA_API_KEY=key-mindboost-media-server # ⇦ beliebig ändern - MEDIA_API_KEY=key-mindboost-media-server # ⇦ beliebig ändern
- SERVER_NAME=b.mindboost.team # ⇦ beliebig ändern - SERVER_NAME=b.mindboost.team # ⇦ beliebig ändern
command: >
/bin/sh -c '
envsubst < /etc/nginx/conf.d/default.conf.template \
> /etc/nginx/conf.d/default.conf \
&& nginx -t \
&& exec nginx -g "daemon off;"'
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"