Description
In compose watch, editing a service's code rebuilds not only that service but also the services it depends_on. Those dependencies are then rebuilt but not restarted.
Steps to reproduce
git clone https://github.com/dgageot/bug-compose
services:
backend:
build: ./backendfrontend:
build: ./frontenddepends_on:
- backenddevelop:
watch:
- action: rebuildpath: ./frontend
docker compose up --build --watch
# edit ./frontend/main.go
Expected
Only frontend is rebuilt and restarted. backend is left untouched.
Actual
backend is rebuilt too (but not restarted).
Description
In
compose watch, editing a service's code rebuilds not only that service but also the services itdepends_on. Those dependencies are then rebuilt but not restarted.Steps to reproduce
git clone https://github.com/dgageot/bug-compose
Expected
Only
frontendis rebuilt and restarted.backendis left untouched.Actual
backendis rebuilt too (but not restarted).