GNAI-025: Override injiziert runtime-required Secrets (FLUXER_ERLANG_COOKIE gateway, FLUXER_PROFILE_PSEUDONYM_SECRET alle fluxer-Services); unit mit --force-recreate (podman-compose recreatet sonst nicht bei .env-Änderung)
Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
+9
@@ -18,6 +18,15 @@ services:
|
||||
{{ svc }}:
|
||||
<<: *ghostnet-defaults
|
||||
image: {{ image }}
|
||||
environment:
|
||||
{% if 'fluxerapp' in image %}
|
||||
# runtime-required by the fluxer images but not wired in the upstream
|
||||
# compose anchor at 3b1eb567 — injected here explicitly
|
||||
FLUXER_PROFILE_PSEUDONYM_SECRET: ${FLUXER_PROFILE_PSEUDONYM_SECRET:?set in .env}
|
||||
{% endif %}
|
||||
{% if svc == 'gateway' %}
|
||||
FLUXER_ERLANG_COOKIE: ${FLUXER_ERLANG_COOKIE:?set in .env}
|
||||
{% endif %}
|
||||
{% if svc == fluxer_stack_service_edge %}
|
||||
profiles:
|
||||
- ghostnet-disabled-edge
|
||||
|
||||
+3
-1
@@ -12,7 +12,9 @@ ConditionPathExists={{ fluxer_stack_directory }}/docker-compose.ghostnet.yml
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory={{ fluxer_stack_directory }}
|
||||
ExecStart=/usr/bin/podman-compose --project-name fluxer -f {{ fluxer_stack_compose_file }} -f {{ fluxer_stack_override_file }} up -d
|
||||
# --force-recreate: podman-compose does not reliably recreate containers on
|
||||
# .env changes, so force it to converge env/config on every start
|
||||
ExecStart=/usr/bin/podman-compose --project-name fluxer -f {{ fluxer_stack_compose_file }} -f {{ fluxer_stack_override_file }} up -d --force-recreate
|
||||
ExecStop=/usr/bin/podman-compose --project-name fluxer -f {{ fluxer_stack_compose_file }} -f {{ fluxer_stack_override_file }} down
|
||||
TimeoutStartSec=1800
|
||||
TimeoutStopSec=180
|
||||
|
||||
Reference in New Issue
Block a user