Skip to content

[IDEA] docker compose up --watch #11376

@olivierdalang

Description

@olivierdalang

Description

I love the new watch feature !! Thanks !!!

However I feel it could be better integrated in the docker compose workflow.

From what I understand:

  • docker compose watch runs docker compose up --build -d beforehand
  • docker compose watch --no-up doesn't start the stack at all so it can be started separately

The first is convenient, but lacks all the flexibility of docker compose up (optional --build, --remove-orphans, --force-recreate, --profiles, etc.).
The second provides all needed flexibility but requires two distinct commands as stated in #11157 (which was closed as doable with docker compose watch --no-up & docker compose up)

What about adding the --watch flag to docker compose up (and maybe deprecating/dropping the whole docker compose watch subcommand) ? Not sure about implementation, but from an user point of view it certainly would feel more natural.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions