-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
180 lines (180 loc) · 4.71 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
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: 512M
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: 512M
gate_320_services:
restart: always
image: flswld/gate:1.0.0
container_name: gate_320
ports:
- "22222:22222/udp"
- "22222:22222/tcp"
- "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: '8.00'
memory: 8192M
gs_1_services:
restart: always
image: flswld/gs:1.0.0
container_name: gs_1
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:
- gate_320_services
deploy:
resources:
limits:
cpus: '8.00'
memory: 8192M
gs_2_services:
restart: always
image: flswld/gs:1.0.0
container_name: gs_2
ports:
- "4568: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:
- gate_320_services
deploy:
resources:
limits:
cpus: '8.00'
memory: 8192M
gs_3_services:
restart: always
image: flswld/gs:1.0.0
container_name: gs_3
ports:
- "4569: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:
- gate_320_services
deploy:
resources:
limits:
cpus: '8.00'
memory: 8192M
multi_services:
restart: always
image: flswld/multi:1.0.0
container_name: multi
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
- ./multi/bin/application.toml:/multi/application.toml
- ../gdconf/game_data_config:/multi/game_data_config
depends_on:
- gate_320_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:
- multi_services
deploy:
resources:
limits:
cpus: '1.00'
memory: 512M