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
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to use
podman-composewith a singlepodman-compose.yamlfile but different.envfiles for different configurations. However,podman-composelooks for.envfile in the same location where the.yamlfile is located (probably as a default of thepython-dotenvmodule).How can I instruct
podman-composeto load a.envfile from a different location?There is
--env-filein the source code, but this seems to only be used for building the arguments topodman. But I need a custom.envduringpodman-composeexecution (e.g. to select the proper image), not duringpodman.Beta Was this translation helpful? Give feedback.
All reactions