You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use podman-compose with a single podman-compose.yaml file but different .env files for different configurations. However, podman-compose looks for .env file in the same location where the .yaml file is located (probably as a default of the python-dotenv module).
How can I instruct podman-compose to load a .env file from a different location?
There is --env-file in the source code, but this seems to only be used for building the arguments to podman. But I need a custom .env during podman-compose execution (e.g. to select the proper image), not during podman.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to use
podman-compose
with a singlepodman-compose.yaml
file but different.env
files for different configurations. However,podman-compose
looks for.env
file in the same location where the.yaml
file is located (probably as a default of thepython-dotenv
module).How can I instruct
podman-compose
to load a.env
file from a different location?There is
--env-file
in the source code, but this seems to only be used for building the arguments topodman
. But I need a custom.env
duringpodman-compose
execution (e.g. to select the proper image), not duringpodman
.Beta Was this translation helpful? Give feedback.
All reactions