rdev/docker-compose.yaml
jordan 2fc8454b8c feat: add local development environment
- docker-compose.yaml: Local PostgreSQL on port 5433
- .env.local.example: Environment template for local dev
- Makefile: Dev commands (run, test, db-up, db-reset, etc.)
- QUICKSTART.md: Developer setup guide
- .gitignore: Exclude .env.local

Verified workflow:
1. make setup (creates .env.local)
2. make db-up (starts postgres)
3. make run (auto-migrates and serves on :8080)

All endpoints tested and working.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 00:07:02 -07:00

24 lines
575 B
YAML

# Local development environment for rdev-api
# Usage: docker compose up -d
services:
postgres:
image: postgres:15-alpine
container_name: rdev-postgres
environment:
POSTGRES_USER: appuser
POSTGRES_PASSWORD: localdev
POSTGRES_DB: rdev
ports:
- "5433:5432" # Use 5433 to avoid conflicts with local postgres
volumes:
- rdev-postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U appuser -d rdev"]
interval: 5s
timeout: 5s
retries: 5
volumes:
rdev-postgres-data: