services: postgres: image: pgvector/pgvector:pg16 container_name: pgvector restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: memory ports: - "5432:5432" volumes: - pg_data:/var/lib/postgresql/data - ./initdb:/docker-entrypoint-initdb.d:ro healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres -d memory"] interval: 5s timeout: 3s retries: 20 volumes: pg_data: