chore: Update Docker compose files to use named volumes (#6704)

* chore: Update Docker compose files to use named volumes

* chore: Update Docker compose files to use named volumes (prod)
This commit is contained in:
Jon
2026-04-02 13:40:44 +08:00
committed by GitHub
parent 7049167c88
commit 515f1077c8
28 changed files with 498 additions and 167 deletions
@@ -66,8 +66,8 @@ services:
- OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes:
- ./ob/data:/root/ob
- ./ob/config:/root/.obd/cluster
- fastgpt-ob-data:/root/ob
- fastgpt-ob-config:/root/.obd/cluster
configs:
- source: init_sql
target: /root/boot/init.d/init.sql
@@ -82,6 +82,7 @@ services:
timeout: 10s
retries: 1000
start_period: 10s
mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo
@@ -93,7 +94,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes:
- ./mongo/data:/data/db
- fastgpt-mongo:/data/db
healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s
@@ -145,7 +146,7 @@ services:
retries: 3
start_period: 30s
volumes:
- ./redis/data:/data
- fastgpt-redis:/data
fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio
@@ -159,7 +160,7 @@ services:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
volumes:
- ./fastgpt-minio:/data
- fastgpt-minio:/data
command: server /data --console-address ":9001"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
@@ -422,7 +423,7 @@ services:
restart: unless-stopped
container_name: aiproxy_pg
volumes:
- ./aiproxy_pg:/var/lib/postgresql/data
- fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks:
- aiproxy
environment:
@@ -440,6 +441,20 @@ networks:
aiproxy:
vector:
volumes:
fastgpt-pg:
fastgpt-mongo:
fastgpt-redis:
fastgpt-minio:
fastgpt-milvus-minio:
fastgpt-milvus-etcd:
fastgpt-milvus-data:
fastgpt-ob-data:
fastgpt-ob-config:
fastgpt-seekdb-data:
fastgpt-seekdb-config:
fastgpt-aiproxy_pg:
configs:
opensandbox-config:
content: |
@@ -464,4 +479,4 @@ configs:
name: init_sql
content: |
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;