Skip to content

docker stack deploy use COMPOSE_FILE environment variable #2295

Open

Description

@augnustin

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

Activity

  1. thaJeztah commented on Jan 28, 2020

    @thaJeztah
    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

  2. augnustin commented on Jan 28, 2020

    @augnustin
    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
  3. kodyrecords commented on May 24, 2022

    @kodyrecords

    Any plans?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions