refactor(dev): 调整开发环境配置
- 修改 GateWay 配置文件中的后台服务器端口 - 更新 Docker Compose 文件,增加 Logic 服务并调整相关配置
This commit is contained in:
@@ -11,7 +11,7 @@ GateServer = {
|
|||||||
--后台服务器的地址和端口
|
--后台服务器的地址和端口
|
||||||
BackServer = {
|
BackServer = {
|
||||||
Host = "127.0.0.1",
|
Host = "127.0.0.1",
|
||||||
Port = 11317,
|
Port = 10318,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -3,17 +3,27 @@ version: '3.8'
|
|||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: chuanqi-os:latest
|
image: chuanqi-os:latest
|
||||||
container_name: chuanqi-server-s1
|
container_name: chuanqi-server-dev
|
||||||
cpus: '0.5'
|
cpus: '2'
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
volumes:
|
volumes:
|
||||||
- .:/data/server/s1
|
- .:/data/server/s1
|
||||||
- ./wch:/etc/yum/wch
|
|
||||||
entrypoint: "/data/server/s1/run.sh"
|
entrypoint: "/data/server/s1/run.sh"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
TZ: Asia/Shanghai
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user