Skip to content

Commit 3964cbb

Browse files
authored
Merge pull request #217 from antosubash/chore/shared-dev-services
docs: document shared dev-services local database in CLAUDE.md
2 parents ffe49fe + 909501c commit 3964cbb

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

‎CLAUDE.md‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
1414

1515
Modular monolith framework for .NET with compile-time module discovery via Roslyn source generators. Frontend uses React 19 + Inertia.js served via a static HTML shell.
1616

17+
## Local database (shared dev-services stack)
18+
19+
**Do NOT start your own Postgres container.** All repos in `~/Repos` share one
20+
stack defined in `~/Repos/dev-services` (one PostGIS + Redis + MinIO + Adminer on
21+
the `devnet` Docker network). Start it once with `make up` there.
22+
23+
- Local dev defaults to **SQLite** (`app.db`), so Postgres is optional here.
24+
- To use Postgres, point the app at the shared server: `localhost:5432`,
25+
`postgres`/`postgres`, database **`simplemodule`** (already created by the
26+
shared stack's init SQL).
27+
- This repo's own `docker-compose.yml` starts a `postgres:17` container (db
28+
`simplemodule`, creds `simplemodule`/`simplemodule`). Prefer the shared stack
29+
and skip it — running both conflicts on port 5432. Running via the Aspire
30+
AppHost also provisions its own Postgres (`simplemoduledb`); that's a separate
31+
path from the shared stack.
32+
33+
If 5432 is taken by an old per-project container, stop that container rather than
34+
remapping ports. To add a database, edit `dev-services/init/01-databases.sql`.
35+
1736
## Build & Run
1837

1938
```bash

0 commit comments

Comments
 (0)