feat(server): 更新服务器配置并调整网络设置
- 修改数据库服务器地址和端口 - 更新后台服务器地址 - 调整逻辑服务器和其他相关服务器的地址 - 更改数据库密码 - 在 docker-compose.yml 中添加网络配置和端口映射
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
db:
|
||||
base:
|
||||
image: chuanqi-server-base:latest
|
||||
container_name: chuanqi-server-db
|
||||
networks:
|
||||
network:
|
||||
ipv4_address: 172.36.10.25
|
||||
stdin_open: true
|
||||
ports:
|
||||
- 10319:10319
|
||||
- 35010:35010
|
||||
- 31000:31000
|
||||
- 34000:34000
|
||||
- 5660:5660
|
||||
- 8500:8500
|
||||
volumes:
|
||||
- ./DBServer:/data/server/s1/DBServer
|
||||
- ./wch:/etc/yum/wch
|
||||
@@ -14,37 +23,50 @@ services:
|
||||
- ./buildConfig/NameServerLinux.txt:/data/server/build/NameServer/NameServerLinux.txt
|
||||
- ./buildConfig/SessionServerLinux.txt:/data/server/build/SessionServer/SessionServerLinux.txt
|
||||
entrypoint: "/data/server/s1/DBServer/start.sh"
|
||||
network_mode: "host"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
|
||||
logic:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
|
||||
container_name: chuanqi-server-logic
|
||||
networks:
|
||||
- network
|
||||
ports:
|
||||
- 10318:10318
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
depends_on:
|
||||
- db # 等待db服务启动
|
||||
- base
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./LogicServer:/data/server/s1/LogicServer
|
||||
- ./wch:/etc/yum/wch
|
||||
entrypoint: "/data/server/s1/LogicServer/start.sh"
|
||||
network_mode: "host"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
|
||||
gate:
|
||||
image: registry.cn-hangzhou.aliyuncs.com/kubbo/chuanqi-os:latest
|
||||
container_name: chuanqi-server-gate
|
||||
networks:
|
||||
- network
|
||||
ports:
|
||||
- 10317:10317
|
||||
depends_on:
|
||||
- logic # 等待logic服务启动
|
||||
- logic
|
||||
stdin_open: true
|
||||
volumes:
|
||||
- ./Gateway:/data/server/s1/Gateway
|
||||
- ./wch:/etc/yum/wch
|
||||
entrypoint: "/data/server/s1/Gateway/start.sh"
|
||||
network_mode: "host"
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
TZ: Asia/Shanghai
|
||||
networks:
|
||||
network:
|
||||
driver: bridge
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.36.10.0/24
|
||||
Reference in New Issue
Block a user