Enable docker compose watch for API development.
CI / test (push) Successful in 5s

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
This commit is contained in:
2026-03-02 21:34:43 +00:00
parent 96b5e8f40f
commit 6cbaab73dc
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -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:
+4
View File
@@ -88,6 +88,10 @@ services:
ports:
- "8122:8122"
restart: unless-stopped
develop:
watch:
- action: rebuild
path: .
api-dev:
profiles: ["dev"]