Open Koli0842 opened 4 months ago
I think what you are looking for is interpolation. As mentioned in the README, this is not yet supported by Podlet. It's on my list of things to do for the compose_spec
library, see k9withabone/compose_spec_rs#3.
The env_file
field of a Compose service is already supported. It is translated to the EnvironmentFile=
Quadlet option.
That is correct, sorry for my redundancy!
IMHO the implementation should include adding support to quadlet. Because otherwise one would have to remember runnig podlet on change of environment which will be frustrating.
the implementation should include adding support to quadlet.
You should create an issue in the Podman repo as Quadlet is developed there.
I am trying to create systemd unit files for my Immich deployment from their provided docker-compose file, in which an env_file is specified and some variables are referenced by the ${VAR_NAME} syntax. Looks like podlet does not attempt to resolve them, resulting in errors like
While I am not sure systemd supports loading an env file and resolve variables within the unit files, it could already be a step forward to resolve the variables within podlet and have the unit files generated with static values at the time of running the command, along with perhaps a warning to the user that further changes to the env_file will not get automatically picked up by systemd units