How use envs with docker compose/stack #3397
Answered
by
maks-oleksyuk
theapplegeek
asked this question in
Q&A
|
Hi, If so, how should it be configured? I tried setting the variables only in the |
Answered by
maks-oleksyuk
Feb 20, 2026
Replies: 1 comment 4 replies
|
If this is a deployment using compose, try adding this to your service: env_file:
- .envDokploy will create a |
4 replies
Answer selected by
theapplegeek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If this is a deployment using compose, try adding this to your service:
Dokploy will create a
.envfile with the settings specified in the UI and transfer them to the container after the next rebuild. If you change any value, you will need to redeploy.