28 lines
590 B
YAML
28 lines
590 B
YAML
version: '3.8'
|
|
|
|
# Local development uses PostgreSQL for convenience.
|
|
# Production uses CockroachDB (provisioned by the platform).
|
|
# Both are wire-compatible — code using lib/pq works with either.
|
|
services:
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_USER: dev
|
|
POSTGRES_PASSWORD: dev
|
|
POSTGRES_DB: persona-community-1
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
volumes:
|
|
postgres_data:
|
|
redis_data:
|