forked from DevOps/deploy.stack
build(postgres): 添加 pgvector 栈配置
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
services:
|
||||
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}
|
||||
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD}
|
||||
- POSTGRES_INITDB_ARGS=--auth-host=${POSTGRES_HOST_AUTH_METHOD}
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
volumes:
|
||||
- ${Volumes_Path}/pgdata:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-postgres}
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
Reference in New Issue
Block a user