services: hunjing-postgres: # 基础档使用本地 postgres:16;WP-04 启用向量检索时切换 pgvector/pgvector:17 image: postgres:16-alpine container_name: hunjing-postgres restart: unless-stopped environment: POSTGRES_USER: hunjing POSTGRES_PASSWORD: hunjing_dev_password POSTGRES_DB: hunjing ports: - "127.0.0.1:5432:5432" volumes: - hunjing-pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U hunjing -d hunjing"] interval: 5s timeout: 3s retries: 12 volumes: hunjing-pgdata: