Files
lunarfront-app/docker-compose.dev.yml
Ryan Moon c1cddd6b74 Phase 1: Monorepo scaffold, database, and dev environment
Turborepo monorepo with @forte/shared and @forte/backend workspaces.
Docker Compose dev env with PostgreSQL 16 + Valkey 8.
Fastify server with Pino JSON logging, request ID tracing, and
health endpoint. Drizzle ORM with company + location tables.

Includes:
- Root config (turbo, tsconfig, eslint, prettier)
- @forte/shared: types, schemas, currency/date utils
- @forte/backend: Fastify entry, plugins (database, redis, cors,
  error-handler, dev-auth), health route, Drizzle schema + migration
- Dev auth bypass via X-Dev-Company/Location/User headers
- Vitest integration test with clean DB per test (forte_test)
- Seed script for dev company + location
2026-03-27 14:51:46 -05:00

37 lines
743 B
YAML

services:
postgres:
image: postgres:16
container_name: forte-postgres
restart: unless-stopped
environment:
POSTGRES_USER: forte
POSTGRES_PASSWORD: forte
POSTGRES_DB: forte
ports:
- "5432:5432"
volumes:
- forte-pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U forte"]
interval: 5s
timeout: 3s
retries: 5
valkey:
image: valkey/valkey:8
container_name: forte-valkey
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- forte-valkey:/data
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
forte-pgdata:
forte-valkey: