assistant/compose.yaml

26 lines
749 B
YAML

name: assistant-learning
services:
postgres:
image: paradedb/paradedb:0.26.1-pg17
restart: unless-stopped
environment:
POSTGRES_USER: assistant
POSTGRES_PASSWORD: ${ASSISTANT_POSTGRES_PASSWORD:?Run pnpm db:up to create local database configuration}
POSTGRES_DB: assistant_learning
ports:
- "127.0.0.1:${ASSISTANT_POSTGRES_PORT:-55432}:5432"
volumes:
- learning-pgdata:/var/lib/postgresql/data
- ./infra/postgres/init.sql:/docker-entrypoint-initdb.d/20_assistant.sql:ro
shm_size: 256mb
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 20
start_period: 10s
volumes:
learning-pgdata: