From d91c3d8d8a1a486458a2e817fb6335a4ded8ef5c Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 10 Jan 2025 16:19:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(dev):=20=E8=B0=83=E6=95=B4=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 GateWay 配置文件中的后台服务器端口 - 更新 Docker Compose 文件,增加 Logic 服务并调整相关配置 --- Gateway/GateWay.txt | 2 +- docker-compose.yml | 22 ++++++++++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Gateway/GateWay.txt b/Gateway/GateWay.txt index 7b6a4e6..e76eced 100755 --- a/Gateway/GateWay.txt +++ b/Gateway/GateWay.txt @@ -11,7 +11,7 @@ GateServer = { --后台服务器的地址和端口 BackServer = { Host = "127.0.0.1", - Port = 11317, + Port = 10318, }, }, } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 25c2d28..ffa7add 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,17 +3,27 @@ version: '3.8' services: server: image: chuanqi-os:latest - container_name: chuanqi-server-s1 - cpus: '0.5' + container_name: chuanqi-server-dev + cpus: '2' stdin_open: true volumes: - .:/data/server/s1 - - ./wch:/etc/yum/wch entrypoint: "/data/server/s1/run.sh" network_mode: "host" restart: unless-stopped environment: TZ: Asia/Shanghai - - - + logic: + image: chuanqi-os:latest + container_name: chuanqi-server-logic + cpus: '4' + cpuset: '13-16' + stdin_open: true + volumes: + - ./LogicServer:/data/server/s1/LogicServer + - ./wch:/etc/yum/wch + entrypoint: "/data/server/s1/LogicServer/run.sh" + network_mode: "host" + restart: unless-stopped + environment: + TZ: Asia/Shanghai