Files
dd0c/products/01-llm-cost-router/docker-compose.yml
Max Mayfield 311a834228 Add dd0c/route project scaffolding: migrations, docker-compose, README
- PostgreSQL schema: orgs, users, api_keys, provider_configs, routing_rules, cost_tables, feature_flags
- TimescaleDB schema: request_events hypertable, hourly/daily continuous aggregates, compression, retention
- docker-compose.yml: postgres, timescaledb, redis for local dev
- README with quick start, architecture overview, pricing tiers
- .env.example, .gitignore
2026-03-01 02:29:23 +00:00

51 lines
1.1 KiB
YAML

# dd0c/route — Local Development
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: dd0c
POSTGRES_PASSWORD: dd0c
POSTGRES_DB: dd0c
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
- ./migrations/001_init.sql:/docker-entrypoint-initdb.d/001_init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dd0c"]
interval: 5s
timeout: 3s
retries: 5
timescaledb:
image: timescale/timescaledb:latest-pg16
environment:
POSTGRES_USER: dd0c
POSTGRES_PASSWORD: dd0c
POSTGRES_DB: dd0c_telemetry
ports:
- "5433:5432"
volumes:
- ts_data:/var/lib/postgresql/data
- ./migrations/002_timescale.sql:/docker-entrypoint-initdb.d/002_timescale.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U dd0c"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
volumes:
pg_data:
ts_data: