Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update support on arm64 device 增加对arm芯片设备支持 #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 98 additions & 0 deletions docker-compose-arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
version: "2.3"

networks:
dnf:
ipam:
config:
- subnet: 172.20.0.0/16

services:
dnfmysql:
image: xanderye/dnf-mysql:5.6
platform: linux/amd64 # 配置以支持arm芯片
ports:
- 3000:3306
environment:
- TZ=Asia/Shanghai
# game账户ip白名单
- ALLOW_IP=172.20.0.%
# game账户密码
- GAME_PASSWORD=uu5!^%jg
- MYSQL_ROOT_PASSWORD=88888888
networks:
- dnf
restart: unless-stopped
volumes:
- ./dnfmysql/mysql:/var/lib/mysql
container_name: dnfmysql
dnfserver:
image: xanderye/dnf-server:centos7
platform: linux/amd64 # 配置以支持arm芯片
depends_on:
- dnfmysql
environment:
- TZ=Asia/Shanghai
# 自动获取mysql容器的ip
- AUTO_MYSQL_IP=true
# mysql容器名称(主机名)
- MYSQL_NAME=dnfmysql
# mysql的IP地址(使用时需要关闭AUTO_MYSQL_IP)
- MYSQL_IP=192.168.1.2
# mysql的IP端口(使用时需要关闭AUTO_MYSQL_IP)
- MYSQL_PORT=3306
# game账户密码
- GAME_PASSWORD=uu5!^%jg
# 自动获取公网ip
- AUTO_PUBLIC_IP=false
# 这里填写你的IP地址
- PUBLIC_IP=127.0.0.1
# DP2插件
- DP2=false
- GM_ACCOUNT=gm_user
- GM_PASSWORD=123456
- GM_CONNECT_KEY=763WXRBW3PFTC3IXPFWH
- GM_LANDER_VERSION=20180307
shm_size: 8g
memswap_limit: -1
mem_limit: 1g
# windows下生效
cpu_count: 1
# 占用1个cpu
cpus: 1.0
networks:
- dnf
restart: unless-stopped
ports:
- 7600:7600/tcp # DnfGateServe 网关
- 881:881/tcp # DnfGateServe 网关
- 20303:20303/tcp # df_dbmw_r
- 20303:20303/udp # df_dbmw_r
- 20403:20403/tcp # df_dbmw_r
- 20403:20403/udp # df_dbmw_r
- 40403:40403/tcp # df_manager_r
- 40403:40403/udp # df_manager_r
- 7000:7000/tcp # df_bridge_r
- 7000:7000/udp # df_bridge_r
- 7001:7001/tcp # df_channel_r
- 7001:7001/udp # df_channel_r
- 7200:7200/tcp # df_relay_r
- 7200:7200/udp # df_relay_r
- 10011:10011/tcp # df_game_r
- 31100:31100/tcp # df_community
- 30303:30303/tcp # df_monitor_r
- 30303:30303/udp # df_monitor_r
- 30403:30403/tcp # df_guild_r
- 30403:30403/udp # df_guild_r
- 10052:10052/tcp # df_game_r
- 20011:20011/tcp # df_game_r
- 20203:20203/tcp # df_dbmw_r
- 20203:20203/udp # df_dbmw_r
- 30703:30703/udp # df_coserver_r
- 11011:11011/udp # df_game_r
- 2311-2313:2311-2313/udp # df_stun_r
- 30503:30503/udp # df_statics_r
- 11052:11052/udp # df_game_r
volumes:
- ./dnfserver/data:/data
- ./dnfserver/log:/home/neople/game/log
container_name: dnfserver