Commit 515f1077 by Jon Committed by GitHub

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)
parent 7049167c
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
...@@ -79,7 +79,7 @@ services: ...@@ -79,7 +79,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: test:
[ [
...@@ -145,9 +145,9 @@ services: ...@@ -145,9 +145,9 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z # cpu 不支持 AVX 时候使用 RELEASE.2025-09-07T16-13-09Z-cpuv1
container_name: fastgpt-minio container_name: fastgpt-minio
restart: always restart: always
networks: networks:
...@@ -159,7 +159,7 @@ services: ...@@ -159,7 +159,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -341,7 +341,7 @@ services: ...@@ -341,7 +341,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -358,6 +358,13 @@ networks: ...@@ -358,6 +358,13 @@ networks:
fastgpt: fastgpt:
aiproxy: aiproxy:
volumes:
fastgpt-pg:
fastgpt-mongo:
fastgpt-redis:
fastgpt-minio:
fastgpt-aiproxy_pg:
configs: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
...@@ -79,7 +79,7 @@ services: ...@@ -79,7 +79,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: test:
[ [
...@@ -145,9 +145,9 @@ services: ...@@ -145,9 +145,9 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z # cpu 不支持 AVX 时候使用 RELEASE.2025-09-07T16-13-09Z-cpuv1
container_name: fastgpt-minio container_name: fastgpt-minio
restart: always restart: always
networks: networks:
...@@ -159,7 +159,7 @@ services: ...@@ -159,7 +159,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -341,7 +341,7 @@ services: ...@@ -341,7 +341,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -358,6 +358,13 @@ networks: ...@@ -358,6 +358,13 @@ networks:
fastgpt: fastgpt:
aiproxy: aiproxy:
volumes:
fastgpt-pg:
fastgpt-mongo:
fastgpt-redis:
fastgpt-minio:
fastgpt-aiproxy_pg:
configs: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -56,7 +56,7 @@ services: ...@@ -56,7 +56,7 @@ services:
networks: networks:
- vector - vector
volumes: volumes:
- ./milvus-minio:/minio_data - fastgpt-milvus-minio:/minio_data
command: minio server /minio_data --console-address ":9001" command: minio server /minio_data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -75,7 +75,7 @@ services: ...@@ -75,7 +75,7 @@ services:
networks: networks:
- vector - vector
volumes: 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 command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck: healthcheck:
test: ['CMD', 'etcdctl', 'endpoint', 'health'] test: ['CMD', 'etcdctl', 'endpoint', 'health']
...@@ -95,7 +95,7 @@ services: ...@@ -95,7 +95,7 @@ services:
- fastgpt - fastgpt
- vector - vector
volumes: volumes:
- ./milvus/data:/var/lib/milvus - fastgpt-milvus-data:/var/lib/milvus
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz'] test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
interval: 30s interval: 30s
...@@ -105,6 +105,7 @@ services: ...@@ -105,6 +105,7 @@ services:
depends_on: depends_on:
- 'milvus-etcd' - 'milvus-etcd'
- 'milvus-minio' - 'milvus-minio'
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -116,7 +117,7 @@ services: ...@@ -116,7 +117,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -168,7 +169,7 @@ services: ...@@ -168,7 +169,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -182,7 +183,7 @@ services: ...@@ -182,7 +183,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -445,7 +446,7 @@ services: ...@@ -445,7 +446,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -463,6 +464,20 @@ networks: ...@@ -463,6 +464,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -66,8 +66,8 @@ services: ...@@ -66,8 +66,8 @@ services:
- OB_SERVER_IP=127.0.0.1 - OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494 # 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes: volumes:
- ./ob/data:/root/ob - fastgpt-ob-data:/root/ob
- ./ob/config:/root/.obd/cluster - fastgpt-ob-config:/root/.obd/cluster
configs: configs:
- source: init_sql - source: init_sql
target: /root/boot/init.d/init.sql target: /root/boot/init.d/init.sql
...@@ -82,6 +82,7 @@ services: ...@@ -82,6 +82,7 @@ services:
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -93,7 +94,7 @@ services: ...@@ -93,7 +94,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -145,7 +146,7 @@ services: ...@@ -145,7 +146,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -159,7 +160,7 @@ services: ...@@ -159,7 +160,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -422,7 +423,7 @@ services: ...@@ -422,7 +423,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -440,6 +441,20 @@ networks: ...@@ -440,6 +441,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -57,12 +57,13 @@ services: ...@@ -57,12 +57,13 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -74,7 +75,7 @@ services: ...@@ -74,7 +75,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -126,7 +127,7 @@ services: ...@@ -126,7 +127,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -140,7 +141,7 @@ services: ...@@ -140,7 +141,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -403,7 +404,7 @@ services: ...@@ -403,7 +404,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -421,6 +422,20 @@ networks: ...@@ -421,6 +422,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -61,14 +61,15 @@ services: ...@@ -61,14 +61,15 @@ services:
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源 # MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
- MODE=MINI - MODE=MINI
volumes: volumes:
- ./seekdb/data:/var/lib/mysql - fastgpt-seekdb-data:/var/lib/mysql
- ./seekdb/config:/etc/mysql/conf.d - fastgpt-seekdb-config:/etc/mysql/conf.d
healthcheck: healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword'] test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -80,7 +81,7 @@ services: ...@@ -80,7 +81,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -132,7 +133,7 @@ services: ...@@ -132,7 +133,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -146,7 +147,7 @@ services: ...@@ -146,7 +147,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -409,7 +410,7 @@ services: ...@@ -409,7 +410,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -427,6 +428,20 @@ networks: ...@@ -427,6 +428,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -110,7 +110,7 @@ services: ...@@ -110,7 +110,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -124,7 +124,7 @@ services: ...@@ -124,7 +124,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -387,7 +387,7 @@ services: ...@@ -387,7 +387,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -405,6 +405,20 @@ networks: ...@@ -405,6 +405,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -56,7 +56,7 @@ services: ...@@ -56,7 +56,7 @@ services:
networks: networks:
- vector - vector
volumes: volumes:
- ./milvus-minio:/minio_data - fastgpt-milvus-minio:/minio_data
command: minio server /minio_data --console-address ":9001" command: minio server /minio_data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -75,7 +75,7 @@ services: ...@@ -75,7 +75,7 @@ services:
networks: networks:
- vector - vector
volumes: 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 command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck: healthcheck:
test: ['CMD', 'etcdctl', 'endpoint', 'health'] test: ['CMD', 'etcdctl', 'endpoint', 'health']
...@@ -95,7 +95,7 @@ services: ...@@ -95,7 +95,7 @@ services:
- fastgpt - fastgpt
- vector - vector
volumes: volumes:
- ./milvus/data:/var/lib/milvus - fastgpt-milvus-data:/var/lib/milvus
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz'] test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
interval: 30s interval: 30s
...@@ -105,6 +105,7 @@ services: ...@@ -105,6 +105,7 @@ services:
depends_on: depends_on:
- 'milvus-etcd' - 'milvus-etcd'
- 'milvus-minio' - 'milvus-minio'
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -116,7 +117,7 @@ services: ...@@ -116,7 +117,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -168,7 +169,7 @@ services: ...@@ -168,7 +169,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -182,7 +183,7 @@ services: ...@@ -182,7 +183,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -445,7 +446,7 @@ services: ...@@ -445,7 +446,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -463,6 +464,20 @@ networks: ...@@ -463,6 +464,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -66,8 +66,8 @@ services: ...@@ -66,8 +66,8 @@ services:
- OB_SERVER_IP=127.0.0.1 - OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494 # 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes: volumes:
- ./ob/data:/root/ob - fastgpt-ob-data:/root/ob
- ./ob/config:/root/.obd/cluster - fastgpt-ob-config:/root/.obd/cluster
configs: configs:
- source: init_sql - source: init_sql
target: /root/boot/init.d/init.sql target: /root/boot/init.d/init.sql
...@@ -82,6 +82,7 @@ services: ...@@ -82,6 +82,7 @@ services:
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -93,7 +94,7 @@ services: ...@@ -93,7 +94,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -145,7 +146,7 @@ services: ...@@ -145,7 +146,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -159,7 +160,7 @@ services: ...@@ -159,7 +160,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -422,7 +423,7 @@ services: ...@@ -422,7 +423,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -440,6 +441,20 @@ networks: ...@@ -440,6 +441,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -57,12 +57,13 @@ services: ...@@ -57,12 +57,13 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -74,7 +75,7 @@ services: ...@@ -74,7 +75,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -126,7 +127,7 @@ services: ...@@ -126,7 +127,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -140,7 +141,7 @@ services: ...@@ -140,7 +141,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -403,7 +404,7 @@ services: ...@@ -403,7 +404,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -421,6 +422,20 @@ networks: ...@@ -421,6 +422,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -61,14 +61,15 @@ services: ...@@ -61,14 +61,15 @@ services:
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源 # MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
- MODE=MINI - MODE=MINI
volumes: volumes:
- ./seekdb/data:/var/lib/mysql - fastgpt-seekdb-data:/var/lib/mysql
- ./seekdb/config:/etc/mysql/conf.d - fastgpt-seekdb-config:/etc/mysql/conf.d
healthcheck: healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword'] test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -80,7 +81,7 @@ services: ...@@ -80,7 +81,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -132,7 +133,7 @@ services: ...@@ -132,7 +133,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -146,7 +147,7 @@ services: ...@@ -146,7 +147,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -409,7 +410,7 @@ services: ...@@ -409,7 +410,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -427,6 +428,20 @@ networks: ...@@ -427,6 +428,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -110,7 +110,7 @@ services: ...@@ -110,7 +110,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -124,7 +124,7 @@ services: ...@@ -124,7 +124,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -387,7 +387,7 @@ services: ...@@ -387,7 +387,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -405,6 +405,20 @@ networks: ...@@ -405,6 +405,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
...@@ -79,7 +79,7 @@ services: ...@@ -79,7 +79,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: test:
[ [
...@@ -145,9 +145,9 @@ services: ...@@ -145,9 +145,9 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: ${{minio.image}}:${{minio.tag}} image: ${{minio.image}}:${{minio.tag}} # cpu 不支持 AVX 时候使用 ${{minio.tag}}-cpuv1
container_name: fastgpt-minio container_name: fastgpt-minio
restart: always restart: always
networks: networks:
...@@ -159,7 +159,7 @@ services: ...@@ -159,7 +159,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -341,7 +341,7 @@ services: ...@@ -341,7 +341,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -358,6 +358,13 @@ networks: ...@@ -358,6 +358,13 @@ networks:
fastgpt: fastgpt:
aiproxy: aiproxy:
volumes:
fastgpt-pg:
fastgpt-mongo:
fastgpt-redis:
fastgpt-minio:
fastgpt-aiproxy_pg:
configs: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -57,7 +57,7 @@ ${{vec.db}} ...@@ -57,7 +57,7 @@ ${{vec.db}}
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -109,7 +109,7 @@ ${{vec.db}} ...@@ -109,7 +109,7 @@ ${{vec.db}}
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: ${{minio.image}}:${{minio.tag}} image: ${{minio.image}}:${{minio.tag}}
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -123,7 +123,7 @@ ${{vec.db}} ...@@ -123,7 +123,7 @@ ${{vec.db}}
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -386,7 +386,7 @@ ${{vec.db}} ...@@ -386,7 +386,7 @@ ${{vec.db}}
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -404,6 +404,20 @@ networks: ...@@ -404,6 +404,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
networks: networks:
- vector - vector
volumes: volumes:
- ./milvus-minio:/minio_data - fastgpt-milvus-minio:/minio_data
command: minio server /minio_data --console-address ":9001" command: minio server /minio_data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
networks: networks:
- vector - vector
volumes: 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 command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck: healthcheck:
test: ['CMD', 'etcdctl', 'endpoint', 'health'] test: ['CMD', 'etcdctl', 'endpoint', 'health']
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
- fastgpt - fastgpt
- vector - vector
volumes: volumes:
- ./milvus/data:/var/lib/milvus - fastgpt-milvus-data:/var/lib/milvus
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz'] test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
interval: 30s interval: 30s
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
- OB_SERVER_IP=127.0.0.1 - OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494 # 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes: volumes:
- ./ob/data:/root/ob - fastgpt-ob-data:/root/ob
- ./ob/config:/root/.obd/cluster - fastgpt-ob-config:/root/.obd/cluster
configs: configs:
- source: init_sql - source: init_sql
target: /root/boot/init.d/init.sql target: /root/boot/init.d/init.sql
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源 # MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
- MODE=MINI - MODE=MINI
volumes: volumes:
- ./seekdb/data:/var/lib/mysql - fastgpt-seekdb-data:/var/lib/mysql
- ./seekdb/config:/etc/mysql/conf.d - fastgpt-seekdb-config:/etc/mysql/conf.d
healthcheck: healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword'] test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
interval: 30s interval: 30s
......
...@@ -56,7 +56,7 @@ services: ...@@ -56,7 +56,7 @@ services:
networks: networks:
- vector - vector
volumes: volumes:
- ./milvus-minio:/minio_data - fastgpt-milvus-minio:/minio_data
command: minio server /minio_data --console-address ":9001" command: minio server /minio_data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -75,7 +75,7 @@ services: ...@@ -75,7 +75,7 @@ services:
networks: networks:
- vector - vector
volumes: 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 command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck: healthcheck:
test: ['CMD', 'etcdctl', 'endpoint', 'health'] test: ['CMD', 'etcdctl', 'endpoint', 'health']
...@@ -95,7 +95,7 @@ services: ...@@ -95,7 +95,7 @@ services:
- fastgpt - fastgpt
- vector - vector
volumes: volumes:
- ./milvus/data:/var/lib/milvus - fastgpt-milvus-data:/var/lib/milvus
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz'] test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
interval: 30s interval: 30s
...@@ -105,6 +105,7 @@ services: ...@@ -105,6 +105,7 @@ services:
depends_on: depends_on:
- 'milvus-etcd' - 'milvus-etcd'
- 'milvus-minio' - 'milvus-minio'
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -116,7 +117,7 @@ services: ...@@ -116,7 +117,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -168,7 +169,7 @@ services: ...@@ -168,7 +169,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -182,7 +183,7 @@ services: ...@@ -182,7 +183,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -445,7 +446,7 @@ services: ...@@ -445,7 +446,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -463,6 +464,20 @@ networks: ...@@ -463,6 +464,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -66,8 +66,8 @@ services: ...@@ -66,8 +66,8 @@ services:
- OB_SERVER_IP=127.0.0.1 - OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494 # 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes: volumes:
- ./ob/data:/root/ob - fastgpt-ob-data:/root/ob
- ./ob/config:/root/.obd/cluster - fastgpt-ob-config:/root/.obd/cluster
configs: configs:
- source: init_sql - source: init_sql
target: /root/boot/init.d/init.sql target: /root/boot/init.d/init.sql
...@@ -82,6 +82,7 @@ services: ...@@ -82,6 +82,7 @@ services:
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -93,7 +94,7 @@ services: ...@@ -93,7 +94,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -145,7 +146,7 @@ services: ...@@ -145,7 +146,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -159,7 +160,7 @@ services: ...@@ -159,7 +160,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -422,7 +423,7 @@ services: ...@@ -422,7 +423,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -440,6 +441,20 @@ networks: ...@@ -440,6 +441,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -57,12 +57,13 @@ services: ...@@ -57,12 +57,13 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -74,7 +75,7 @@ services: ...@@ -74,7 +75,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -126,7 +127,7 @@ services: ...@@ -126,7 +127,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -140,7 +141,7 @@ services: ...@@ -140,7 +141,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -403,7 +404,7 @@ services: ...@@ -403,7 +404,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -421,6 +422,20 @@ networks: ...@@ -421,6 +422,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -61,14 +61,15 @@ services: ...@@ -61,14 +61,15 @@ services:
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源 # MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
- MODE=MINI - MODE=MINI
volumes: volumes:
- ./seekdb/data:/var/lib/mysql - fastgpt-seekdb-data:/var/lib/mysql
- ./seekdb/config:/etc/mysql/conf.d - fastgpt-seekdb-config:/etc/mysql/conf.d
healthcheck: healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword'] test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -80,7 +81,7 @@ services: ...@@ -80,7 +81,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -132,7 +133,7 @@ services: ...@@ -132,7 +133,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -146,7 +147,7 @@ services: ...@@ -146,7 +147,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -409,7 +410,7 @@ services: ...@@ -409,7 +410,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -427,6 +428,20 @@ networks: ...@@ -427,6 +428,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -110,7 +110,7 @@ services: ...@@ -110,7 +110,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z image: registry.cn-hangzhou.aliyuncs.com/fastgpt/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -124,7 +124,7 @@ services: ...@@ -124,7 +124,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -387,7 +387,7 @@ services: ...@@ -387,7 +387,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -405,6 +405,20 @@ networks: ...@@ -405,6 +405,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -56,7 +56,7 @@ services: ...@@ -56,7 +56,7 @@ services:
networks: networks:
- vector - vector
volumes: volumes:
- ./milvus-minio:/minio_data - fastgpt-milvus-minio:/minio_data
command: minio server /minio_data --console-address ":9001" command: minio server /minio_data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -75,7 +75,7 @@ services: ...@@ -75,7 +75,7 @@ services:
networks: networks:
- vector - vector
volumes: 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 command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls http://0.0.0.0:2379 --data-dir /etcd
healthcheck: healthcheck:
test: ['CMD', 'etcdctl', 'endpoint', 'health'] test: ['CMD', 'etcdctl', 'endpoint', 'health']
...@@ -95,7 +95,7 @@ services: ...@@ -95,7 +95,7 @@ services:
- fastgpt - fastgpt
- vector - vector
volumes: volumes:
- ./milvus/data:/var/lib/milvus - fastgpt-milvus-data:/var/lib/milvus
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz'] test: ['CMD', 'curl', '-f', 'http://localhost:9091/healthz']
interval: 30s interval: 30s
...@@ -105,6 +105,7 @@ services: ...@@ -105,6 +105,7 @@ services:
depends_on: depends_on:
- 'milvus-etcd' - 'milvus-etcd'
- 'milvus-minio' - 'milvus-minio'
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -116,7 +117,7 @@ services: ...@@ -116,7 +117,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -168,7 +169,7 @@ services: ...@@ -168,7 +169,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -182,7 +183,7 @@ services: ...@@ -182,7 +183,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -445,7 +446,7 @@ services: ...@@ -445,7 +446,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -463,6 +464,20 @@ networks: ...@@ -463,6 +464,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -66,8 +66,8 @@ services: ...@@ -66,8 +66,8 @@ services:
- OB_SERVER_IP=127.0.0.1 - OB_SERVER_IP=127.0.0.1
# 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494 # 更多环境变量配置见oceanbase官方文档: https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002013494
volumes: volumes:
- ./ob/data:/root/ob - fastgpt-ob-data:/root/ob
- ./ob/config:/root/.obd/cluster - fastgpt-ob-config:/root/.obd/cluster
configs: configs:
- source: init_sql - source: init_sql
target: /root/boot/init.d/init.sql target: /root/boot/init.d/init.sql
...@@ -82,6 +82,7 @@ services: ...@@ -82,6 +82,7 @@ services:
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -93,7 +94,7 @@ services: ...@@ -93,7 +94,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -145,7 +146,7 @@ services: ...@@ -145,7 +146,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -159,7 +160,7 @@ services: ...@@ -159,7 +160,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -422,7 +423,7 @@ services: ...@@ -422,7 +423,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -440,6 +441,20 @@ networks: ...@@ -440,6 +441,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -57,12 +57,13 @@ services: ...@@ -57,12 +57,13 @@ services:
- POSTGRES_PASSWORD=password - POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres - POSTGRES_DB=postgres
volumes: volumes:
- ./pg/data:/var/lib/postgresql/data - fastgpt-pg:/var/lib/postgresql/data
healthcheck: healthcheck:
test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres'] test: ['CMD', 'pg_isready', '-U', 'username', '-d', 'postgres']
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -74,7 +75,7 @@ services: ...@@ -74,7 +75,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -126,7 +127,7 @@ services: ...@@ -126,7 +127,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -140,7 +141,7 @@ services: ...@@ -140,7 +141,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -403,7 +404,7 @@ services: ...@@ -403,7 +404,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -421,6 +422,20 @@ networks: ...@@ -421,6 +422,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -61,14 +61,15 @@ services: ...@@ -61,14 +61,15 @@ services:
# MODE分为MINI和NORMAL, 后者会最大程度使用主机资源 # MODE分为MINI和NORMAL, 后者会最大程度使用主机资源
- MODE=MINI - MODE=MINI
volumes: volumes:
- ./seekdb/data:/var/lib/mysql - fastgpt-seekdb-data:/var/lib/mysql
- ./seekdb/config:/etc/mysql/conf.d - fastgpt-seekdb-config:/etc/mysql/conf.d
healthcheck: healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword'] test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-P2881', '-uroot', '-pseekdbpassword']
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 1000 retries: 1000
start_period: 10s start_period: 10s
mongo: mongo:
image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29 image: mongo:5.0.32 # cpu 不支持 AVX 时候使用 4.4.29
container_name: mongo container_name: mongo
...@@ -80,7 +81,7 @@ services: ...@@ -80,7 +81,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -132,7 +133,7 @@ services: ...@@ -132,7 +133,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -146,7 +147,7 @@ services: ...@@ -146,7 +147,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -409,7 +410,7 @@ services: ...@@ -409,7 +410,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -427,6 +428,20 @@ networks: ...@@ -427,6 +428,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
...@@ -58,7 +58,7 @@ services: ...@@ -58,7 +58,7 @@ services:
- MONGO_INITDB_ROOT_USERNAME=myusername - MONGO_INITDB_ROOT_USERNAME=myusername
- MONGO_INITDB_ROOT_PASSWORD=mypassword - MONGO_INITDB_ROOT_PASSWORD=mypassword
volumes: volumes:
- ./mongo/data:/data/db - fastgpt-mongo:/data/db
healthcheck: healthcheck:
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"] test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
interval: 10s interval: 10s
...@@ -110,7 +110,7 @@ services: ...@@ -110,7 +110,7 @@ services:
retries: 3 retries: 3
start_period: 30s start_period: 30s
volumes: volumes:
- ./redis/data:/data - fastgpt-redis:/data
fastgpt-minio: fastgpt-minio:
image: minio/minio:RELEASE.2025-09-07T16-13-09Z image: minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: fastgpt-minio container_name: fastgpt-minio
...@@ -124,7 +124,7 @@ services: ...@@ -124,7 +124,7 @@ services:
- MINIO_ROOT_USER=minioadmin - MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin - MINIO_ROOT_PASSWORD=minioadmin
volumes: volumes:
- ./fastgpt-minio:/data - fastgpt-minio:/data
command: server /data --console-address ":9001" command: server /data --console-address ":9001"
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live'] test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
...@@ -387,7 +387,7 @@ services: ...@@ -387,7 +387,7 @@ services:
restart: unless-stopped restart: unless-stopped
container_name: aiproxy_pg container_name: aiproxy_pg
volumes: volumes:
- ./aiproxy_pg:/var/lib/postgresql/data - fastgpt-aiproxy_pg:/var/lib/postgresql/data
networks: networks:
- aiproxy - aiproxy
environment: environment:
...@@ -405,6 +405,20 @@ networks: ...@@ -405,6 +405,20 @@ networks:
aiproxy: aiproxy:
vector: 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: configs:
opensandbox-config: opensandbox-config:
content: | content: |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment