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
This commit is contained in:
50
products/01-llm-cost-router/docker-compose.yml
Normal file
50
products/01-llm-cost-router/docker-compose.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
# 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:
|
||||
Reference in New Issue
Block a user