From 6cbaab73dc7d9b4b01e9ca3669ae6255924075a7 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Mon, 2 Mar 2026 21:34:43 +0000 Subject: [PATCH] Enable docker compose watch for API development. This adds a watch rebuild rule to the default api service and updates README commands to use the current up+watch workflow. Made-with: Cursor --- README.md | 5 +++-- docker-compose.yml | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d07040..44ba045 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,11 @@ Stop the service: docker compose down ``` -For local development with auto-rebuild on file changes: +For local development with file watching/rebuild: ```bash -COMPOSE_BAKE=true docker compose --profile dev up --watch +COMPOSE_BAKE=true docker compose up -d +COMPOSE_BAKE=true docker compose watch ``` Notes: diff --git a/docker-compose.yml b/docker-compose.yml index c084d04..36b64c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -88,6 +88,10 @@ services: ports: - "8122:8122" restart: unless-stopped + develop: + watch: + - action: rebuild + path: . api-dev: profiles: ["dev"]