pg18-vector
yml
services:
postgres18:
image: registry.cn-chengdu.aliyuncs.com/qins-open-img/pgvector:0.8.5-pg18
container_name: pg18-vector
restart: unless-stopped
env_file:
- .env
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./data:/var/lib/postgresql
- ./backup:/backup
healthcheck:
test:
[
"CMD-SHELL",
"pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"
]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
logging:
driver: json-file
options:
max-size: "20m"
max-file: "5"
networks:
- pg17-net
networks:
pg17-net:
external: true