mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-26 02:07:28 +08:00
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:
@@ -56,7 +56,7 @@ services:
|
||||
networks:
|
||||
- vector
|
||||
volumes:
|
||||
- ./milvus-minio:/minio_data
|
||||
- fastgpt-milvus-minio:/minio_data
|
||||
command: minio server /minio_data --console-address ":9001"
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
|
||||
@@ -75,7 +75,7 @@ services:
|
||||
networks:
|
||||
- vector
|
||||
volumes:
|
||||
- ./milvus/etcd:/etcd
|
||||
- fastgpt-milvus-etcd:/etcd
|
||||
command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
|
||||
healthcheck:
|
||||
test: ['CMD', 'etcdctl', 'endpoint', 'health']
|
||||
@@ -95,7 +95,7 @@ services:
|
||||
- fastgpt
|
||||
- vector
|
||||
volumes:
|
||||
- ./milvus/data:/var/lib/milvus
|
||||
- fastgpt-milvus-data:/var/lib/milvus
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
|
||||
interval: 30s
|
||||
@@ -105,6 +105,7 @@ services:
|
||||
depends_on:
|
||||
- 'milvus-etcd'
|
||||
- 'milvus-minio'
|
||||
|
||||
mongo:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
|
||||
container_name: mongo
|
||||
@@ -116,7 +117,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
|
||||
@@ -168,7 +169,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
- fastgpt-redis:/data
|
||||
fastgpt-minio:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
container_name: fastgpt-minio
|
||||
@@ -182,7 +183,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']
|
||||
@@ -445,7 +446,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:
|
||||
@@ -463,6 +464,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: |
|
||||
@@ -483,4 +498,4 @@ configs:
|
||||
# 容器内访问宿主机服务时需要设置为宿主机 IP 或 hostname
|
||||
# macOS/Windows: host.docker.internal;Linux: 宿主机 LAN IP(如 192.168.1.100)
|
||||
host_ip = "host.docker.internal"
|
||||
|
||||
|
||||
|
||||
@@ -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: registry.cn-hangzhou.aliyuncs.com/fastgpt/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: registry.cn-hangzhou.aliyuncs.com/fastgpt/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;
|
||||
|
||||
|
||||
|
||||
@@ -57,12 +57,13 @@ services:
|
||||
- POSTGRES_PASSWORD=password
|
||||
- POSTGRES_DB=postgres
|
||||
volumes:
|
||||
- ./pg/data:/var/lib/postgresql/data
|
||||
- fastgpt-pg:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
mongo:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
|
||||
container_name: mongo
|
||||
@@ -74,7 +75,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
|
||||
@@ -126,7 +127,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
- fastgpt-redis:/data
|
||||
fastgpt-minio:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
container_name: fastgpt-minio
|
||||
@@ -140,7 +141,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']
|
||||
@@ -403,7 +404,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:
|
||||
@@ -421,6 +422,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: |
|
||||
@@ -441,4 +456,4 @@ configs:
|
||||
# 容器内访问宿主机服务时需要设置为宿主机 IP 或 hostname
|
||||
# macOS/Windows: host.docker.internal;Linux: 宿主机 LAN IP(如 192.168.1.100)
|
||||
host_ip = "host.docker.internal"
|
||||
|
||||
|
||||
|
||||
@@ -61,14 +61,15 @@ services:
|
||||
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
|
||||
- MODE=MINI
|
||||
volumes:
|
||||
- ./seekdb/data:/var/lib/mysql
|
||||
- ./seekdb/config:/etc/mysql/conf.d
|
||||
- fastgpt-seekdb-data:/var/lib/mysql
|
||||
- fastgpt-seekdb-config:/etc/mysql/conf.d
|
||||
healthcheck:
|
||||
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 1000
|
||||
start_period: 10s
|
||||
|
||||
mongo:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
|
||||
container_name: mongo
|
||||
@@ -80,7 +81,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
|
||||
@@ -132,7 +133,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
- fastgpt-redis:/data
|
||||
fastgpt-minio:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
container_name: fastgpt-minio
|
||||
@@ -146,7 +147,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']
|
||||
@@ -409,7 +410,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:
|
||||
@@ -427,6 +428,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: |
|
||||
@@ -447,4 +462,4 @@ configs:
|
||||
# 容器内访问宿主机服务时需要设置为宿主机 IP 或 hostname
|
||||
# macOS/Windows: host.docker.internal;Linux: 宿主机 LAN IP(如 192.168.1.100)
|
||||
host_ip = "host.docker.internal"
|
||||
|
||||
|
||||
|
||||
@@ -58,7 +58,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
|
||||
@@ -110,7 +110,7 @@ services:
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
volumes:
|
||||
- ./redis/data:/data
|
||||
- fastgpt-redis:/data
|
||||
fastgpt-minio:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
|
||||
container_name: fastgpt-minio
|
||||
@@ -124,7 +124,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']
|
||||
@@ -387,7 +387,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:
|
||||
@@ -405,6 +405,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: |
|
||||
@@ -425,4 +439,4 @@ configs:
|
||||
# 容器内访问宿主机服务时需要设置为宿主机 IP 或 hostname
|
||||
# macOS/Windows: host.docker.internal;Linux: 宿主机 LAN IP(如 192.168.1.100)
|
||||
host_ip = "host.docker.internal"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user