Replies: 4 comments
-
Yeah having the same issue. |
Beta Was this translation helpful? Give feedback.
-
If you don't reference the environment it will not inject the variable services:
test:
image: alpine
command: sh -c "while true; do sleep 3600; done"
environment:
- MY_VAR=${MY_VAR} then if you enter to the container you can run PRINTENV
|
Beta Was this translation helpful? Give feedback.
-
Hello, Thanks for your reply! I'll give your suggestion a try by explicitly referencing the environment variables in the docker-compose.yml file. That said, I just wanted to clarify: was the removal of automatic injection of environment variables from the UI (as it worked in version 0.22.7) an intentional change? Thanks in advance for your feedback! Best, |
Beta Was this translation helpful? Give feedback.
-
Hi, I can confirm that explicitly defining the variables in the environment section of the docker-compose.yml does work as expected. That said, I’d like to revisit the previous behavior: in version 0.22.7, environment variables defined via the UI were automatically injected into the containers, even without being referenced in the Compose file. This was quite convenient, especially for overriding defaults without having to modify the docker-compose.yml. Thanks in advance for your clarification! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
To Reproduce
e.g :
env
command inside the container.Observed result:
The environment variable(s) defined via the UI are not present in the container.
Current vs. Expected behavior
Current behavior: Environment variables defined in the UI are not injected into the containers.
Expected behavior: Variables set in the UI should be present in the container's environment after deployment, as it was in version 0.22.7.
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker Compose
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
Beta Was this translation helpful? Give feedback.
All reactions