Files
ai-operator/deploy/docker-compose.postgres.yml
T

19 lines
518 B
YAML

services:
ai-operator-postgres:
image: pgvector/pgvector:pg16
container_name: ai-operator-postgres
restart: unless-stopped
env_file:
- /etc/ai-operator/postgres.env
ports:
- "127.0.0.1:${AI_OPERATOR_POSTGRES_PORT:-5432}:5432"
volumes:
- ai_operator_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 20
volumes:
ai_operator_postgres_data: