Update docker-compose.yml

This commit is contained in:
Baobhan Sith
2025-05-08 08:01:09 +08:00
parent d4b11839c6
commit 7286bdf39e
+5 -10
View File
@@ -6,7 +6,7 @@ services:
- "18111:80"
depends_on:
- backend
- remote-gateway # 更新依赖
- remote-gateway
networks:
- nexus-terminal-network
@@ -18,28 +18,23 @@ services:
environment:
NODE_ENV: production
PORT: 3001
REMOTE_GATEWAY_API_BASE: http://remote-gateway:9090 # 更新环境变量
REMOTE_GATEWAY_API_BASE: http://remote-gateway:9090
volumes:
- ./data:/app/data
networks:
- nexus-terminal-network
remote-gateway:
build:
context: .
dockerfile: packages/remote-gateway/Dockerfile
image: heavrnl/nexus-terminal-remote-gateway:latest
container_name: nexus-terminal-remote-gateway
environment:
GUACD_HOST: guacd
GUACD_PORT: 4822
REMOTE_GATEWAY_API_PORT: 9090
REMOTE_GATEWAY_WS_PORT: 8080 # 与 server.ts 中的默认值一致
FRONTEND_URL: http://frontend # 或者实际的前端部署地址
REMOTE_GATEWAY_WS_PORT: 8080
FRONTEND_URL: http://frontend
MAIN_BACKEND_URL: http://backend:3001
NODE_ENV: production
ports: # 可选:如果需要从主机直接访问 API 或 WS 端口
- "9090:9090"
- "8080:8080"
networks:
- nexus-terminal-network
depends_on: