forked from Ayin-a/hk4e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
156 lines (156 loc) · 4.1 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: '3'
services:
node_services:
restart: always
image: flswld/node:1.0.0
container_name: node
ports:
- "1234:1234/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./node/bin/application.toml:/node/application.toml
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
dispatch_services:
restart: always
image: flswld/dispatch:1.0.0
container_name: dispatch
ports:
- "8080:8080/tcp"
- "2345:2345/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./dispatch/bin/application.toml:/dispatch/application.toml
- ./dispatch/bin/key:/dispatch/key
- ./dispatch/bin/static:/dispatch/static
depends_on:
- node_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
gate_services:
restart: always
image: flswld/gate:1.0.0
container_name: gate
ports:
- "22222:22222/udp"
- "33333:33333/tcp"
- "3456:3456/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gate/bin/application.toml:/gate/application.toml
- ./gate/bin/key:/gate/key
depends_on:
- dispatch_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 1024M
anticheat_services:
restart: always
image: flswld/anticheat:1.0.0
container_name: anticheat
ports:
- "5678:5678/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./anticheat/bin/application.toml:/anticheat/application.toml
- ../gdconf/game_data_config:/anticheat/game_data_config
depends_on:
- gate_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M
pathfinding_services:
restart: always
image: flswld/pathfinding:1.0.0
container_name: pathfinding
ports:
- "6789:6789/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./pathfinding/bin/application.toml:/pathfinding/application.toml
depends_on:
- anticheat_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 1024M
gs_services:
restart: always
image: flswld/gs:1.0.0
container_name: gs
ports:
- "4567:4567/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gs/bin/application.toml:/gs/application.toml
- ../gdconf/game_data_config:/gs/game_data_config
depends_on:
- pathfinding_services
deploy:
resources:
limits:
cpus: '4.00'
memory: 4096M
gm_services:
restart: always
image: flswld/gm:1.0.0
container_name: gm
ports:
- "9001:9001/tcp"
- "7890:7890/tcp"
environment:
TZ: Asia/Shanghai
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /usr/share/zoneinfo:/usr/share/zoneinfo
- ./gm/bin/application.toml:/gm/application.toml
depends_on:
- gs_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 128M