mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-27 02:08:10 +08:00
chore: Rename service & container names for consistency in Docker configs (#6710)
* chore: Rename container names for consistency in Docker configs * chore: Rename service names for consistency in Docker configs
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
# - 只包含 FastGPT 的最小化运行条件
|
||||
# - 没有 FastGPT 本体
|
||||
# - 所有端口都映射到外层
|
||||
# - pg: 5432
|
||||
# - mongo: 27017
|
||||
# - redis: 6379
|
||||
# - fastgpt-pg: 5432
|
||||
# - fastgpt-mongo: 27017
|
||||
# - fastgpt-redis: 6379
|
||||
# - fastgpt-code-sandbox: 3002
|
||||
# - fastgpt-plugin: 3003
|
||||
# - aiproxy: 3010
|
||||
# - fastgpt-aiproxy: 3010
|
||||
# - 使用 pgvector 作为默认的向量库
|
||||
|
||||
# plugin auth token
|
||||
@@ -20,9 +20,9 @@ x-volume-manager-auth-token: &x-volume-manager-auth-token 'vmtoken'
|
||||
x-aiproxy-token: &x-aiproxy-token 'token'
|
||||
# 数据库连接相关配置
|
||||
x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@mongo:27017/fastgpt?authSource=admin
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@redis:6379
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
@@ -44,9 +44,9 @@ x-log-config: &x-log-config
|
||||
|
||||
services:
|
||||
# Vector DB
|
||||
pg:
|
||||
fastgpt-pg:
|
||||
image: ${{pg.image}}:${{pg.tag}}
|
||||
container_name: pg
|
||||
container_name: fastgpt-pg
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 5432:5432
|
||||
@@ -66,9 +66,9 @@ services:
|
||||
retries: 10
|
||||
|
||||
# DB
|
||||
mongo:
|
||||
fastgpt-mongo:
|
||||
image: ${{mongo.image}}:${{mongo.tag}} # cpu 不支持 AVX 时候使用 4.4.29
|
||||
container_name: mongo
|
||||
container_name: fastgpt-mongo
|
||||
restart: always
|
||||
ports:
|
||||
- 27017:27017
|
||||
@@ -110,7 +110,7 @@ services:
|
||||
rs.initiate({
|
||||
_id: "rs0",
|
||||
members: [
|
||||
{ _id: 0, host: "mongo:27017" }
|
||||
{ _id: 0, host: "fastgpt-mongo:27017" }
|
||||
]
|
||||
})
|
||||
}' > /data/initReplicaSet.js
|
||||
@@ -128,9 +128,9 @@ services:
|
||||
|
||||
# 等待docker-entrypoint.sh脚本执行的MongoDB服务进程
|
||||
wait $$!
|
||||
redis:
|
||||
fastgpt-redis:
|
||||
image: ${{redis.image}}:${{redis.tag}}
|
||||
container_name: redis
|
||||
container_name: fastgpt-redis
|
||||
ports:
|
||||
- 6379:6379
|
||||
networks:
|
||||
@@ -166,8 +166,8 @@ services:
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
code-sandbox:
|
||||
container_name: code-sandbox
|
||||
fastgpt-code-sandbox:
|
||||
container_name: fastgpt-code-sandbox
|
||||
image: ${{fastgpt-code-sandbox.image}}:${{fastgpt-code-sandbox.tag}}
|
||||
ports:
|
||||
- 3002:3000
|
||||
@@ -251,9 +251,9 @@ services:
|
||||
# 沙盒控制器:管理 Docker 容器的创建/执行/停止/删除
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
fastgpt-opensandbox-server:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
container_name: fastgpt-opensandbox-server
|
||||
restart: always
|
||||
ports:
|
||||
- 8090:8090
|
||||
@@ -272,9 +272,9 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
# 卷管理微服务:负责幂等创建/删除 Docker named volume 或 k8s PVC
|
||||
volume-manager:
|
||||
fastgpt-volume-manager:
|
||||
image: ${{volume-manager.image}}:${{volume-manager.tag}}
|
||||
container_name: volume-manager
|
||||
container_name: fastgpt-volume-manager
|
||||
restart: always
|
||||
ports:
|
||||
- 3005:3000
|
||||
@@ -300,20 +300,20 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
# Pre-pull only: not started by `docker compose up` (uses profile `prepull`).
|
||||
agent-sandbox-image:
|
||||
fastgpt-agent-sandbox-image:
|
||||
image: ${{agent-sandbox-image.image}}:${{agent-sandbox-image.tag}}
|
||||
profiles:
|
||||
- prepull
|
||||
|
||||
# AI Proxy
|
||||
aiproxy:
|
||||
fastgpt-aiproxy:
|
||||
image: ${{aiproxy.image}}:${{aiproxy.tag}}
|
||||
container_name: aiproxy
|
||||
container_name: fastgpt-aiproxy
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3010:3000
|
||||
depends_on:
|
||||
aiproxy_pg:
|
||||
fastgpt-aiproxy-pg:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- fastgpt
|
||||
@@ -324,7 +324,7 @@ services:
|
||||
# 错误日志详情保存时间(小时)
|
||||
LOG_DETAIL_STORAGE_HOURS: 1
|
||||
# 数据库连接地址
|
||||
SQL_DSN: postgres://postgres:aiproxy@aiproxy_pg:5432/aiproxy
|
||||
SQL_DSN: postgres://postgres:aiproxy@fastgpt-aiproxy-pg:5432/aiproxy
|
||||
# 最大重试次数
|
||||
RETRY_TIMES: 3
|
||||
# 不需要计费
|
||||
@@ -336,10 +336,10 @@ services:
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
aiproxy_pg:
|
||||
fastgpt-aiproxy-pg:
|
||||
image: ${{aiproxy-pg.image}}:${{aiproxy-pg.tag}} # docker hub
|
||||
restart: unless-stopped
|
||||
container_name: aiproxy_pg
|
||||
container_name: fastgpt-aiproxy-pg
|
||||
volumes:
|
||||
- fastgpt-aiproxy_pg:/var/lib/postgresql/data
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user