Skip to content

Commit a599fed

Browse files
Claude Codeclaude
andcommitted
docs: default dev infra to .env
Clarify that development defaults for PostgreSQL and Redis come from .env services, with Docker as an optional local fallback. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ed6b188 commit a599fed

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

CLAUDE.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ This file provides guidance to AI agents when working with code in this reposito
77
### Setup and Dependencies
88

99
- `pnpm install` - Install all dependencies
10-
- `pnpm setup` - Full development environment setup (starts Docker, syncs DB, seeds data)
11-
- `docker compose up -d` - Start PostgreSQL and Redis services
10+
- `pnpm setup` - Full development environment setup (uses `.env` infrastructure defaults, syncs DB, seeds data)
11+
- `docker compose up -d` - Optional local PostgreSQL/Redis fallback when not using external `.env` services
12+
13+
### Infrastructure Defaults
14+
15+
- Default development infrastructure uses the database and Redis settings in `.env`
16+
- PostgreSQL defaults to `DATABASE_URL` (external by default in this repository)
17+
- Redis defaults to `REDIS_HOST` / `REDIS_PORT` / `REDIS_USERNAME` / `REDIS_PASSWORD` (and `UPSTASH_REDIS_REST_URL` when used)
18+
- Only use local Docker Postgres/Redis if you explicitly need local fallback infrastructure
1219

1320
### Development
1421

@@ -162,8 +169,9 @@ When creating a new package in `packages/`, include these config files. Copy the
162169
- Gateway: http://localhost:4001
163170
- Docs: http://localhost:3005
164171
- Admin: http://localhost:3006
165-
- PostgreSQL: localhost:5432
166-
- Redis: localhost:6379
172+
- PostgreSQL: use `DATABASE_URL` from `.env` (external by default in this repo)
173+
- Redis: use `REDIS_*` / `UPSTASH_*` values from `.env` (external by default in this repo)
174+
- Local fallback (optional): PostgreSQL `localhost:5432`, Redis `localhost:6379` via Docker
167175

168176
## Folder Structure
169177

0 commit comments

Comments
 (0)