Pass app variables as KEY: ${KEY} so they merge with compose-set values
The env override listed bare keys (- KEY). podman-compose can't merge a
bare key with a value the compose file sets for the same variable and
fails the deploy: "can't merge value of [KEY] of type str and NoneType".
Writing KEY: ${KEY} keeps values out of the YAML (compose interpolates
them from its environment) and merges with list- or map-form environment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
This commit is contained in:
parent
ba0a0155c8
commit
a5f06d4490
2 changed files with 11 additions and 7 deletions
|
|
@ -208,10 +208,11 @@ to every compose command:
|
|||
The UI points out variables the compose file uses without a default that
|
||||
aren't set.
|
||||
- With **Pass to every container** (the default), `deploy`/`restart` also
|
||||
generate `stacks/<app>/.panel-env.yaml`, a compose override that lists the
|
||||
keys under every service's `environment:`. Compose reads the values from its
|
||||
own environment, so they are never quoted into YAML, and they take
|
||||
precedence over values set in the compose file.
|
||||
generate `stacks/<app>/.panel-env.yaml`, a compose override that sets
|
||||
`KEY: ${KEY}` under every service's `environment:`. Compose fills the values
|
||||
in from its own environment, so they are never quoted into YAML, and they
|
||||
take precedence over values set in the compose file (including variables
|
||||
the compose file sets itself, in list or map form).
|
||||
|
||||
Values must be single-line. Names that would change how podman/compose run
|
||||
(`PATH`, `HOME`, `XDG_*`, `DOCKER_*`, `COMPOSE_*`, `PODMAN_*`, …) are rejected.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue