refactor(server): 优化服务器配置和资源分配
- 为 chuanqi-server 数据库容器添加额外的卷挂载,以支持 wch 相关配置 - 修改 chuanqi-server-logic 容器的 CPU 集设置,提高性能和资源利用率
This commit is contained in:
@@ -8,6 +8,7 @@ services:
|
|||||||
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
|
||||||
@@ -17,7 +18,7 @@ services:
|
|||||||
image: chuanqi-os:latest
|
image: chuanqi-os:latest
|
||||||
container_name: chuanqi-server-logic
|
container_name: chuanqi-server-logic
|
||||||
cpus: '4'
|
cpus: '4'
|
||||||
cpuset: '13-16'
|
cpuset: '13,14,15,16'
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
volumes:
|
volumes:
|
||||||
- ./LogicServer:/data/server/s1/LogicServer
|
- ./LogicServer:/data/server/s1/LogicServer
|
||||||
|
|||||||
Reference in New Issue
Block a user