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 data not being parsed by docker #266

Closed
2 tasks done
markhaines opened this issue Dec 8, 2023 · 2 comments
Closed
2 tasks done

.env data not being parsed by docker #266

markhaines opened this issue Dec 8, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@markhaines
Copy link

⚠️ Please verify that this bug has NOT been reported before.

  • I checked and didn't find similar issue

🛡️ Security Policy

Description

If I move lines from Environment part of the yaml and move them to the .env config pane instead (stripping out - etc so correctly formatted) I've noticed that Dockge ignores them when starting the container, and so the container fails to start.

👟 Reproduction steps

Screenshot 2023-12-08 at 15 03 50
Example container 'adguardhome-sync' refuses to start if the environment: variables are not part of the main config.

👀 Expected behavior

Docker should read the .env config and launch the container including them.

😓 Actual Behavior

Docker fails to read them

Dockge Version

1.3.2

💻 Operating System and Arch

Alma 9.3

🌐 Browser

Chrome

🐋 Docker Version

24.0.7

🟩 NodeJS Version

No response

📝 Relevant log output

No response

@markhaines markhaines added the bug Something isn't working label Dec 8, 2023
@chris-lsn
Copy link

You've to specify the env_file property to the container
https://docs.docker.com/compose/environment-variables/set-environment-variables/#use-the-env_file-attribute

adguardhome-sync:
  env_file:
    - .env

@markhaines
Copy link
Author

Ah, I see... 😳

@louislam louislam closed this as completed Dec 8, 2023
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

3 participants