Description
Developers making changes to the indexer or notifications service must manually restart Docker containers to see their changes. Docker Compose's watch feature (available since Compose 2.22) hot-reloads containers when source files change.
Requirements and context
- Update
docker-compose.yml with develop.watch configuration for indexer and notifications services
- File sync: changes to
indexer/src/ trigger a rebuild and restart of the indexer container
- Rebuild trigger: changes to
indexer/package.json trigger a full image rebuild
- Document the
docker compose watch command in docs/local-development.md
- Write a brief demo section showing the development loop in action
Suggested execution
git checkout -b feat/docker-compose-watch
- Update
docker-compose.yml with watch configuration
- Test the hot-reload loop for both services
- Document in
docs/local-development.md
Example commit message
feat: add Docker Compose watch mode for hot-reload during local development
Description
Developers making changes to the indexer or notifications service must manually restart Docker containers to see their changes. Docker Compose's
watchfeature (available since Compose 2.22) hot-reloads containers when source files change.Requirements and context
docker-compose.ymlwithdevelop.watchconfiguration forindexerandnotificationsservicesindexer/src/trigger a rebuild and restart of the indexer containerindexer/package.jsontrigger a full image rebuilddocker compose watchcommand indocs/local-development.mdSuggested execution
docker-compose.ymlwith watch configurationdocs/local-development.mdExample commit message
feat: add Docker Compose watch mode for hot-reload during local development