forked from 1995chen/dnf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
49 lines (47 loc) · 1.47 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: "2.3"
services:
dnf:
hostname: dnf
image: 1995chen/dnf:centos5-2.1.4.fix1
# privileged: true
cap_add:
- NET_ADMIN
environment:
- TZ=Asia/Shanghai
# 数据库root密码
- DNF_DB_ROOT_PASSWORD=88888888
- GM_ACCOUNT=gmuser
- GM_PASSWORD=gmpass
- GM_CONNECT_KEY=763WXRBW3PFTC3IXPFWH
- GM_LANDER_VERSION=20180307
# 手动指定对外IP
- PUBLIC_IP=127.0.0.1
# Netbird[可选配置][没有公网IP的可选私有内网接入]
#- NB_SETUP_KEY=''
#- NB_MANAGEMENT_URL=''
# 开启DDNS[可选配置]
# - DDNS_ENABLE=true
# - DDNS_DOMAIN=''
shm_size: 8g
memswap_limit: -1
mem_limit: 1g
cpu_count: 1
restart: always
ports:
- 2000:180/tcp # supervisor web
- 3000:3306/tcp # mysql
- 7600:7600/tcp # 统一登陆器
- 881:881/tcp # 统一网关
- 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[ch.11]
- 11011:11011/udp # df_game_r[ch.11]
- 10052:10052/tcp # df_game_r[ch.52]
- 11052:11052/udp # df_game_r[ch.52]
- 2311-2313:2311-2313/udp # df_stun_r
volumes:
- ./data:/data
- ./mysql:/var/lib/mysql
- ./log:/home/neople/game/log