Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

env_file ignored for environment #891

Open
Vic-M opened this issue Mar 13, 2024 · 0 comments
Open

env_file ignored for environment #891

Vic-M opened this issue Mar 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Vic-M
Copy link

Vic-M commented Mar 13, 2024

Describe the bug
Although podman-compose passes the values in the env_file to the container, it ignores the value in the compose file

To Reproduce
.env

SOME_ENV_VALUE=qqq

docker-compose.yml

version: "3.8"

services:
  container:
    image: some_image
    env_file:
      - ./../.env
     environment:
      SOME_ENV: ${SOME_ENV_VALUE}

Expected behavior

root@7ad1edad1404:/var/www/html# echo $SOME_ENV
qqq
root@7ad1edad1404:/var/www/html# echo $SOME_ENV_VALUE
qqq

Actual behavior

root@7ad1edad1404:/var/www/html# echo $SOME_ENV

root@7ad1edad1404:/var/www/html# echo $SOME_ENV_VALUE
qqq

Output

podman-compose version
podman-compose version 1.0.7
podman version 4.9.3-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant