Compare commits

...
2 Commits
Author SHA1 Message Date
wangbo d8540d1172 rename(comfyAI): 将项目名称从comfyAI统一更改为easyai 2026-03-30 01:10:22 +08:00
wangbo 7ebc7d5be4 feat(config): default server-to-gateway connection to internal network
Wire WS gateway TCP host/port into the server service environment with ws-gateway:4002 defaults so production deployments in easyai connect over internal container networking out of the box.

Made-with: Cursor
2026-03-30 01:07:33 +08:00
+19 -16
View File
@@ -2,7 +2,7 @@
# (各项参数均有详细的说明,理论情况下保持默认即可运行)
#version: '3'
services:
comfyAI-web:
easyai-web:
container_name: easyai-web
#更新修改冒号后面的版本号
image: registry.cn-shanghai.aliyuncs.com/comfy-ai/one-ai:${VERSION}
@@ -16,10 +16,10 @@ services:
# 这一行是关键。它将一个名为 './data/forend/.pm2' 的持久化卷挂载到容器内的 /app/.pm2 目录
- ./data/forend/.pm2:/app/.pm2
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.8
depends_on:
- comfy-server
- easyai-server
restart: unless-stopped
environment:
# 默认服务器地址,本地不需要更改,云服务需要修改为云端IP,并放行对应端口
@@ -46,7 +46,7 @@ services:
memory: 1500MB
reservations:
memory: 600MB
comfy-server:
easyai-server:
container_name: easyai-server
# 阿里云镜像地址
image: registry.cn-shanghai.aliyuncs.com/comfy-ai/comfy-server:${VERSION} # 阿里云
@@ -56,7 +56,7 @@ services:
- "${SERVER_HTTP_PORT}:3001" #http端口
read_only: true
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.6
depends_on:
- mongo
@@ -111,6 +111,9 @@ services:
# Agent 记忆服务 TCP 连接(来自 .env)
- MEMORY_TCP_HOST=${MEMORY_TCP_HOST:-agent-memory}
- MEMORY_TCP_PORT=${MEMORY_TCP_PORT:-4004}
# easyai-server 发布事件到 ws-gateway(默认走容器内网服务名)
- WS_GATEWAY_TCP_HOST=${WS_GATEWAY_TCP_HOST:-ws-gateway}
- WS_GATEWAY_TCP_PORT=${WS_GATEWAY_TCP_PORT:-4002}
# 日志大小设置,避免日志文件过大
env_file:
- .env
@@ -129,7 +132,7 @@ services:
- "${CONFIG_WS_PORT}:3002" # ws-gateway WebSocket 对外端口映射
read_only: true
networks:
- comfyai
- easyai
depends_on:
- redis
- rabbitmq
@@ -166,7 +169,7 @@ services:
ports:
- ${MONGO_PORT+${MONGO_PORT}:27017}
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.3
environment:
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
@@ -198,7 +201,7 @@ services:
# - ${REDIS_PORT+${REDIS_PORT}:6379}
read_only: true
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.4
# 日志大小设置,避免日志文件过大
logging:
@@ -223,7 +226,7 @@ services:
volumes:
- rabbitmq_data:/var/lib/rabbitmq # 持久化数据
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.12
watchtower:
image: registry.cn-shanghai.aliyuncs.com/comfy-ai/watchtower-aliyun:latest
@@ -239,7 +242,7 @@ services:
# - "${WATCHTOWER_PORT}:8080"
read_only: true
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.9
# 日志大小设置,避免日志文件过大
logging:
@@ -270,7 +273,7 @@ services:
init: true
restart: unless-stopped
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.10
healthcheck:
test:
@@ -306,7 +309,7 @@ services:
image: registry.cn-shanghai.aliyuncs.com/easyaigc/sandbox:latest
container_name: sandbox
networks:
- comfyai
- easyai
#沙箱环境默认不对外暴露
ports:
# - "${SANDBOX_PORT}:8000"
@@ -367,7 +370,7 @@ services:
# 首次启动时执行,创建 pgvector 扩展供记忆服务使用
- ./docker/postgres/init-pgvector.sql:/docker-entrypoint-initdb.d/02-init-pgvector.sql
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.13
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${ASG_POSTGRES_USER:-easyai} -d ${ASG_POSTGRES_DB:-agent_governance}"]
@@ -388,7 +391,7 @@ services:
ports:
- "${ASG_PORT:-3003}:3003"
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.14
depends_on:
easyai-pgvector:
@@ -421,7 +424,7 @@ services:
environment:
- MEMORY_DATABASE_URL=${MEMORY_DATABASE_URL:-postgresql://easyai:easyai2025@easyai-pgvector:5432/easyai_memory}
networks:
comfyai:
easyai:
ipv4_address: 172.21.0.16
depends_on:
easyai-pgvector:
@@ -488,7 +491,7 @@ volumes:
rabbitmq_data:
asg_postgres_data:
networks:
comfyai:
easyai:
driver: bridge
ipam:
config: