From 971de6ec9fbcf89952b27d1985d26d53ded74a04 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Sat, 17 May 2025 09:39:56 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=98=A0=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 Docker Compose 文件中添加了多个服务器构建配置文件的卷映射 - 包括 AMServer、BackStageServer、LoggerServer、NameServer 和 SessionServer 的 Linux 构建配置文件 - 这些配置文件映射将允许在容器中进行服务器构建和配置 --- buildConfig/AMServerLinux.txt | 29 ++++++++++++++++ buildConfig/BackStageServerLinux.txt | 24 +++++++++++++ buildConfig/LoggerServerLinux.txt | 29 ++++++++++++++++ buildConfig/NameServerLinux.txt | 24 +++++++++++++ buildConfig/SessionServerLinux.txt | 51 ++++++++++++++++++++++++++++ docker-compose.yml | 5 +++ 6 files changed, 162 insertions(+) create mode 100644 buildConfig/AMServerLinux.txt create mode 100644 buildConfig/BackStageServerLinux.txt create mode 100644 buildConfig/LoggerServerLinux.txt create mode 100644 buildConfig/NameServerLinux.txt create mode 100644 buildConfig/SessionServerLinux.txt diff --git a/buildConfig/AMServerLinux.txt b/buildConfig/AMServerLinux.txt new file mode 100644 index 0000000..1a00098 --- /dev/null +++ b/buildConfig/AMServerLinux.txt @@ -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" + } + }, + } +} diff --git a/buildConfig/BackStageServerLinux.txt b/buildConfig/BackStageServerLinux.txt new file mode 100644 index 0000000..a126688 --- /dev/null +++ b/buildConfig/BackStageServerLinux.txt @@ -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, + }, +} \ No newline at end of file diff --git a/buildConfig/LoggerServerLinux.txt b/buildConfig/LoggerServerLinux.txt new file mode 100644 index 0000000..05a67da --- /dev/null +++ b/buildConfig/LoggerServerLinux.txt @@ -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, + }, +} \ No newline at end of file diff --git a/buildConfig/NameServerLinux.txt b/buildConfig/NameServerLinux.txt new file mode 100644 index 0000000..2ff0fa3 --- /dev/null +++ b/buildConfig/NameServerLinux.txt @@ -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" + } +} diff --git a/buildConfig/SessionServerLinux.txt b/buildConfig/SessionServerLinux.txt new file mode 100644 index 0000000..3734689 --- /dev/null +++ b/buildConfig/SessionServerLinux.txt @@ -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", + } +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index a28c441..1158f5c 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,11 @@ services: volumes: - ./DBServer:/data/server/s1/DBServer - ./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" network_mode: "host" restart: unless-stopped