forked from cleveragents/cleveragents-core
721ece458c
- Move psycopg2-binary to optional [server] extra with lazy import - Replace silent fallback PostgreSQL URL with ValueError - Add TODO for wiring resolve_database_url into engine paths - Add pool-parameter source comment in UnitOfWork - Add read-only properties for pool params in UnitOfWork - Add UUID/INTERVAL/ARRAY/JSONB to portable type allowlist - Add development-only warning to Docker Compose credentials - Update BDD scenario for new ValueError behavior
31 lines
872 B
YAML
31 lines
872 B
YAML
# docker-compose.yml — Local PostgreSQL for CleverAgents server-mode development
|
|
#
|
|
# Usage:
|
|
# docker compose up -d # start PostgreSQL
|
|
# docker compose down -v # tear down and remove data volume
|
|
#
|
|
# Connect from CleverAgents:
|
|
# export CLEVERAGENTS_SERVER_MODE=true
|
|
# export CLEVERAGENTS_DATABASE_URL=postgresql://cleveragents:cleveragents@localhost:5432/cleveragents
|
|
|
|
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: cleveragents
|
|
# WARNING: Development credentials only — do not use in production
|
|
POSTGRES_PASSWORD: cleveragents
|
|
POSTGRES_DB: cleveragents
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U cleveragents"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
pgdata:
|