mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-06 01:02:54 +08:00
515f1077c8
* chore: Update Docker compose files to use named volumes * chore: Update Docker compose files to use named volumes (prod)
19 lines
583 B
Plaintext
19 lines
583 B
Plaintext
vectorDB:
|
|
image: ${{pg.image}}:${{pg.tag}}
|
|
container_name: pg
|
|
restart: always
|
|
networks:
|
|
- fastgpt
|
|
environment:
|
|
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
|
|
- POSTGRES_USER=username
|
|
- POSTGRES_PASSWORD=password
|
|
- POSTGRES_DB=postgres
|
|
volumes:
|
|
- fastgpt-pg:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|