version: "3.9" services: db: image: ankane/pgvector:latest container_name: rag_pgvector environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=ragdb ports: - "5433:5432" volumes: - ./db/init:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 10