You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docker stack deploy use COMPOSE_FILE environment variable #2295
I recently found about the COMPOSE_FILE environment variable that could be set in .env file (doc).
Is there any plan on integrating this to docker stack deploy, as I find my deploy command ugly and hard to remember (I need to copy/paste it each time).
I'm not sure if the .env file is something that will be supported, but the COMPOSE_FILE variable could perhaps be considered.
With the removal of the experimental .dab file (--bundle-file) option in #2216, perhaps docker stack deploy could now look for a docker-compose.yml by default as well (but that would obviously not solve your example which is using multiple compose files)
Activity
thaJeztah commentedon Jan 28, 2020
I'm not sure if the
.envfile is something that will be supported, but theCOMPOSE_FILEvariable could perhaps be considered.With the removal of the experimental
.dabfile (--bundle-file) option in #2216, perhapsdocker stack deploycould now look for adocker-compose.ymlby default as well (but that would obviously not solve your example which is using multiple compose files)/cc @ndeloof @justincormack
augnustin commentedon Jan 28, 2020
Using
docker-compose.ymlby default would be great too!In general, I would be in favor of aligning
docker stack deploybehavior withdocker-composeone:docker-compose.ymldocker-compose.override.ymlCOMPOSE_FILEenvironment variablekodyrecords commentedon May 24, 2022
Any plans?