scaffold: schema, compose, contract

This commit is contained in:
drjones
2026-08-25 20:02:23 -07:00
commit 035bb3a2e9
3 changed files with 263 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: reseller
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: reseller
volumes:
- pgdata:/var/lib/postgresql/data
- ./db/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql:ro
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U reseller"]
interval: 5s
timeout: 3s
retries: 10
redis:
image: redis:7-alpine
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 10
volumes:
pgdata: