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
Genzer
changed the title
podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml
podman-compose 1.1.0 no longer loads env file in the same directory with compose.yaml when using -fMay 13, 2024
Describe the bug
podman-compose
1.1.0 does not load env files (e.g.env
) when runningpodman-compose
command in a different working directory (fromcompose.yaml
).To Reproduce
Steps to reproduce the behavior:
The bug can be reproduced by the following set up:
Run the following command:
podman-compose -f project-demo/compose.yaml config | grep ZZVAR1
Expected behavior
podman-compose
loads the.env
located in the same directory withcompose.yaml
.Actual behavior
No envfile is loaded even if
env_file: './.env'
is specified in thecompose.yaml
.Output
Environment:
Additional context
I verified that this bug was not in 1.0.6. The behavior from 1.0.6 seemed consistent with
docker compose
.The bug MAY come from 59a59c1#diff-afacb71932eed96cfb44057ef839da783c130d3a0062376a797a5f19f258292e.
The text was updated successfully, but these errors were encountered: