docker-compose icon indicating copy to clipboard operation
docker-compose copied to clipboard

Support for docker compose watch

Open stevenengland opened this issue 1 year ago • 3 comments
trafficstars

Hi,

might it be feasable to support watch as a subcommand in the future? See here: https://docs.docker.com/compose/file-watch/

KR

stevenengland avatar Mar 05 '24 09:03 stevenengland

@stevenengland we need to look into it. What would be the use case in the context of this library you're thinking of?

AlexZeitler avatar Mar 05 '24 09:03 AlexZeitler

Today I use this lib to 'up' containers for development porposes (e2e tests) that where made to work with mounts/volumes (volumes are the mapped apps source and test folders so to say). Nowadays there is the option to replace mounts/volumes with watch directives that automatically sync files/dirs or rebuild the complete image if needed. In a development process this has a few advantages over mounts.

stevenengland avatar Mar 05 '24 10:03 stevenengland

That sounds useful and should be added.

However, I'll need some time to test it as I'm doing only little Node.js these days (actually this lib is the only Node.js stuff at the moment) and my usage of docker compose has changed in the past few months.

If somebody is open to help: we're accepting PRs

AlexZeitler avatar Mar 05 '24 10:03 AlexZeitler