2026-09-20 22:58:45 +08:00
|
|
|
# mkdir -pv /data/volumes/postgres/pgdata
|
|
|
|
|
# pull:: docker compose --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/prod.stack.yml pull
|
|
|
|
|
#run:: docker compose -p prod-dbs --env-file ./dbSer/postgres/env.cfg -f ./dbSer/postgres/prod.stack.yml up -d
|
|
|
|
|
|
|
|
|
|
|
2026-09-20 22:48:21 +08:00
|
|
|
services:
|
2026-09-20 22:58:45 +08:00
|
|
|
|
2026-09-20 22:48:21 +08:00
|
|
|
pgvector:
|
|
|
|
|
image: ${IMAGE_TAG_PGVECTOR_PG18}
|
|
|
|
|
container_name: dbs_pgvector
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
command: ["postgres", "-c", "max_connections=200"]
|
|
|
|
|
ports:
|
|
|
|
|
- "5432:5432"
|
|
|
|
|
environment:
|
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
2026-09-20 22:58:45 +08:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD:-scram-sha-256}
|
|
|
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C --auth-host=${POSTGRES_HOST_AUTH_METHOD:-scram-sha-256}
|
2026-09-20 22:48:21 +08:00
|
|
|
volumes:
|
2026-09-20 23:07:04 +08:00
|
|
|
- ${Volumes_Path}:/var/lib/postgresql
|
2026-09-20 22:48:21 +08:00
|
|
|
healthcheck:
|
|
|
|
|
test:
|
|
|
|
|
- CMD-SHELL
|
|
|
|
|
- pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 10
|