From 7286bdf39e3a3c2f3f4ae27fc316348fb8b18bf7 Mon Sep 17 00:00:00 2001 From: Baobhan Sith <80159437+Heavrnl@users.noreply.github.com> Date: Thu, 8 May 2025 08:01:09 +0800 Subject: [PATCH] Update docker-compose.yml --- docker-compose.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 692eb75..cdfd823 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: