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

docker stack deploy use COMPOSE_FILE environment variable #2295

Open
augnustin opened this issue Jan 28, 2020 · 3 comments
Open

docker stack deploy use COMPOSE_FILE environment variable #2295

augnustin opened this issue Jan 28, 2020 · 3 comments

Comments

@augnustin
Copy link

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).

docker stack deploy --prune -c docker-stack.yml -c docker-compose.yml myapp

Thanks

@thaJeztah
Copy link
Member

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)

/cc @ndeloof @justincormack

@augnustin
Copy link
Author

Using docker-compose.yml by default would be great too!

In general, I would be in favor of aligning docker stack deploy behavior with docker-compose one:

  • default is docker-compose.yml
  • extendable by default with docker-compose.override.yml
  • can be set with COMPOSE_FILE environment variable

@membersound
Copy link

Any plans?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants