build: 添加服务器构建配置文件映射
- 在 Docker Compose 文件中添加了多个服务器构建配置文件的卷映射 - 包括 AMServer、BackStageServer、LoggerServer、NameServer 和 SessionServer 的 Linux 构建配置文件 - 这些配置文件映射将允许在容器中进行服务器构建和配置
This commit is contained in:
29
buildConfig/AMServerLinux.txt
Normal file
29
buildConfig/AMServerLinux.txt
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
amconfig=
|
||||||
|
{
|
||||||
|
httpport =11001, --绑定的http回调的端口
|
||||||
|
amport =5660, --连接地址
|
||||||
|
platform =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
spid="wyi2",
|
||||||
|
codeid=1, --产品的编号
|
||||||
|
code="djrm", --产品的code
|
||||||
|
db="mir_amdb", --数据库名
|
||||||
|
host="127.0.0.1", --数据库主机
|
||||||
|
port=3306, --数据库端口
|
||||||
|
user="root", --数据库账号
|
||||||
|
pass="85b5c930502992d4", --数据库密码
|
||||||
|
paykey="GAmqXI8ao8kGAOIQmjFVqg==", --
|
||||||
|
awdkey="GAmqXI8ao8kGAOIQmjFVqg==", --
|
||||||
|
bianma="utf8", --
|
||||||
|
|
||||||
|
--允许的ip列表,最多32个
|
||||||
|
hosts=
|
||||||
|
{
|
||||||
|
"116.22.44.53",
|
||||||
|
"127.0.0.1",
|
||||||
|
"116.233.207.20"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
24
buildConfig/BackStageServerLinux.txt
Normal file
24
buildConfig/BackStageServerLinux.txt
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
BackServer =
|
||||||
|
{
|
||||||
|
spguid = 1, --默认的spid
|
||||||
|
|
||||||
|
--监听:服务器参数配置
|
||||||
|
Server =
|
||||||
|
{
|
||||||
|
ServiceName="BackStageServer",
|
||||||
|
BindAddress = "0.0.0.0",
|
||||||
|
Port = 8500 ,
|
||||||
|
HttpPort = 111,
|
||||||
|
},
|
||||||
|
|
||||||
|
--数据库连接相关
|
||||||
|
SQL =
|
||||||
|
{
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 3306,
|
||||||
|
DBName = "mir_command",
|
||||||
|
DBUser = "root",
|
||||||
|
DBPass = "85b5c930502992d4",
|
||||||
|
utf8=1,
|
||||||
|
},
|
||||||
|
}
|
||||||
29
buildConfig/LoggerServerLinux.txt
Normal file
29
buildConfig/LoggerServerLinux.txt
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
LoggerServer =
|
||||||
|
{
|
||||||
|
--监听:服务器参数配置
|
||||||
|
Server =
|
||||||
|
{
|
||||||
|
BindAddress = "0.0.0.0",
|
||||||
|
Port = 34000 ,
|
||||||
|
ServiceName="LoggerServer",
|
||||||
|
},
|
||||||
|
|
||||||
|
--监听:发送聊天消息给工具
|
||||||
|
ChatLog =
|
||||||
|
{
|
||||||
|
ServiceName="LogServer",
|
||||||
|
BindAddress = "0.0.0.0",
|
||||||
|
Port = 35010,
|
||||||
|
},
|
||||||
|
|
||||||
|
--数据库连接相关
|
||||||
|
SQL =
|
||||||
|
{
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 3306,
|
||||||
|
DBName = "mir_log_s1",
|
||||||
|
DBUser = "root",
|
||||||
|
DBPass = "85b5c930502992d4",
|
||||||
|
utf8=1,
|
||||||
|
},
|
||||||
|
}
|
||||||
24
buildConfig/NameServerLinux.txt
Normal file
24
buildConfig/NameServerLinux.txt
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
NameServer =
|
||||||
|
{
|
||||||
|
--服务器名称
|
||||||
|
ServerName = "zgame-nameserver",
|
||||||
|
spguid=1,
|
||||||
|
|
||||||
|
--监听:名称服务绑定地址和端口
|
||||||
|
NameService =
|
||||||
|
{
|
||||||
|
Address = "0.0.0.0",
|
||||||
|
Port = 35000
|
||||||
|
},
|
||||||
|
|
||||||
|
--数据库连接配置
|
||||||
|
SQL =
|
||||||
|
{
|
||||||
|
--Host = "192.168.0.173",
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 3306,
|
||||||
|
DBName = "mir_name",
|
||||||
|
DBUser = "root",
|
||||||
|
DBPass = "85b5c930502992d4"
|
||||||
|
}
|
||||||
|
}
|
||||||
51
buildConfig/SessionServerLinux.txt
Normal file
51
buildConfig/SessionServerLinux.txt
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
SessionServer =
|
||||||
|
{
|
||||||
|
--服务器名称
|
||||||
|
ServerName = "会话服(sid=1)",
|
||||||
|
--SPID(运营商ID)定义
|
||||||
|
SPID = "wyi2",
|
||||||
|
spguid = 1,
|
||||||
|
fcmOpen=false,
|
||||||
|
checksign=0,
|
||||||
|
autoaccount = 1,
|
||||||
|
autocard = 1,
|
||||||
|
phptime = 1200,
|
||||||
|
|
||||||
|
--监听:会话服务器
|
||||||
|
SessionService =
|
||||||
|
{
|
||||||
|
Address = "0.0.0.0",
|
||||||
|
Port = 31000
|
||||||
|
},
|
||||||
|
|
||||||
|
--监听:网关服务器(无用)
|
||||||
|
GateService =
|
||||||
|
{
|
||||||
|
Address = "0.0.0.0",
|
||||||
|
Port = 21001
|
||||||
|
},
|
||||||
|
|
||||||
|
--连接:Log服务器
|
||||||
|
LogServer =
|
||||||
|
{
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 34000
|
||||||
|
},
|
||||||
|
|
||||||
|
--连接:AM服务器
|
||||||
|
AMServer =
|
||||||
|
{
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 5660
|
||||||
|
},
|
||||||
|
|
||||||
|
--数据库连接配置
|
||||||
|
SQL =
|
||||||
|
{
|
||||||
|
Host = "127.0.0.1",
|
||||||
|
Port = 3306,
|
||||||
|
DBName = "mir_account",
|
||||||
|
DBUser = "root",
|
||||||
|
DBPass = "85b5c930502992d4",
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -8,6 +8,11 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./DBServer:/data/server/s1/DBServer
|
- ./DBServer:/data/server/s1/DBServer
|
||||||
- ./wch:/etc/yum/wch
|
- ./wch:/etc/yum/wch
|
||||||
|
- ./buildConfig/AMServerLinux.txt:/data/server/build/AMServer/AMServerLinux.txt
|
||||||
|
- ./buildConfig/BackStageServerLinux.txt:/data/server/build/BackStageServer/BackStageServerLinux.txt
|
||||||
|
- ./buildConfig/LoggerServerLinux.txt:/data/server/build/LoggerServer/LoggerServerLinux.txt
|
||||||
|
- ./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"
|
entrypoint: "/data/server/s1/DBServer/start.sh"
|
||||||
network_mode: "host"
|
network_mode: "host"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
Reference in New Issue
Block a user