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

podman-compose no longer parses variables in the specified --env-file file #1081

Open
Gloryandel opened this issue Dec 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Gloryandel
Copy link

Gloryandel commented Dec 1, 2024

Describe the bug
Configure APP_DATA=/srv/pool/appdata/${UID} in env file

compose.yaml

services:
  jellyfin:
    image: ghcr.io/jellyfin/jellyfin:latest
    container_name: jellyfin
    volumes:
      - ${APP_DATA}/Jellyfin/config:/config
      - ${APP_DATA}/Jellyfin/cache:/cache
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped

podman-compose --env-file <file> config

output

services:
  jellyfin:
    image: ghcr.io/jellyfin/jellyfin:latest
    container_name: jellyfin
    volumes:
      - /srv/pool/appdata//Jellyfin/config:/config
      - /srv/pool/appdata//Jellyfin/cache:/cache
    devices:
      - /dev/dri:/dev/dri
    restart: unless-stopped

Obviously, the environment variables are not working. According to the pod creation date information "Created": "2024-11-21T13:24:38.787538597+08:00" that was deployed before and the environment variables worked normally, this problem should be caused by the recent update.

When I deployed the container as before, I found that the results were inconsistent with the previous ones.

Actual behavior

    volumes:
      - /srv/pool/appdata/1000/Jellyfin/config:/config
      - /srv/pool/appdata/1000/Jellyfin/cache:/cache

Output

$ podman-compose version
podman-compose version 1.2.0
podman version 5.3.1

Environment:

  • OS: ArchLinux Linux Arc 6.12.1-arch1-1 Fri, 22 Nov 2024 16:04:27 +0000 x86_64 GNU/Linux
    podman-compose version 1.2.0
    podman version 5.3.1
@Gloryandel Gloryandel added the bug Something isn't working label Dec 1, 2024
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