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.
Description
I love the new
watchfeature !! Thanks !!!However I feel it could be better integrated in the docker compose workflow.
From what I understand:
docker compose watchrunsdocker compose up --build -dbeforehanddocker compose watch --no-updoesn't start the stack at all so it can be started separatelyThe 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
--watchflag todocker compose up(and maybe deprecating/dropping the wholedocker compose watchsubcommand) ? Not sure about implementation, but from an user point of view it certainly would feel more natural.