Setting global environment variables for interpolation in compose.yaml #11521
-
I'd like to have multiple compose files in a single directory and have an .env file for each of them. However, currently, they all read the same file seemingly without an option to override. Is there one? Alternatively, it seems I can just create a dummy compose.yaml which just calls |
Beta Was this translation helpful? Give feedback.
Answered by
mickelsonmichael
Feb 29, 2024
Replies: 1 comment
-
You can use the docker compose --env-file fileA.env --file fileA.yaml up |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mladedav
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
--env-file
option to tell compose which file, is that what you're looking for?