-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yaml
203 lines (190 loc) · 5.95 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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
version: "3.9"
services:
game-load-balancer:
build:
context: .
dockerfile: apps/game-load-balancer/Dockerfile
ports:
- "8333:8333"
- "8085:8085"
- "8900:8900"
- "4000:4000"
depends_on:
- servers-registry
environment:
SERVERS_REGISTRY_SERVICE_ADDRESS: servers-registry:8999
CHAR_SERVICE_ADDRESS: charserver:8087
CHAT_SERVICE_ADDRESS: chatserver:8992
GUILDS_SERVICE_ADDRESS: guildserver:8995
MAIL_SERVICE_ADDRESS: mailserver:8997
GROUP_SERVICE_ADDRESS: groupserver:8998
AUTH_DB_CONNECTION: ${AUTH_DB_USER}:${AUTH_DB_PASS}@tcp(${AUTH_DB_HOST}:${AUTH_DB_PORT})/${AUTH_DB_NAME}
DB_SCHEMA_TYPE: ${DATABASE_SCHEMA_TYPE}
PREFERRED_HOSTNAME: ${EXTERNAL_ADDRESS}
LOG_LEVEL: 0
PORT: 8085
NATS_URL: nats://nats:4222
game-load-balancer-second:
build:
context: .
dockerfile: apps/game-load-balancer/Dockerfile
ports:
- "8045:8045"
depends_on:
- servers-registry
environment:
SERVERS_REGISTRY_SERVICE_ADDRESS: servers-registry:8999
CHAR_SERVICE_ADDRESS: charserver:8087
CHAT_SERVICE_ADDRESS: chatserver:8992
GUILDS_SERVICE_ADDRESS: guildserver:8995
MAIL_SERVICE_ADDRESS: mailserver:8997
GROUP_SERVICE_ADDRESS: groupserver:8998
AUTH_DB_CONNECTION: ${AUTH_DB_USER}:${AUTH_DB_PASS}@tcp(${AUTH_DB_HOST}:${AUTH_DB_PORT})/${AUTH_DB_NAME}
DB_SCHEMA_TYPE: ${DATABASE_SCHEMA_TYPE}
PREFERRED_HOSTNAME: ${EXTERNAL_ADDRESS}
LOG_LEVEL: 0
PORT: 8045
NATS_URL: nats://nats:4222
servers-registry:
build:
context: .
dockerfile: apps/servers-registry/Dockerfile
ports:
- "8999:8999"
depends_on:
- redis
environment:
PORT: 8999
REDIS_URL: redis://:@redis:6379/0
authserver:
build:
context: .
dockerfile: apps/authserver/Dockerfile
ports:
- "3724:3724"
environment:
PORT: 3724
AUTH_DB_CONNECTION: ${AUTH_DB_USER}:${AUTH_DB_PASS}@tcp(${AUTH_DB_HOST}:${AUTH_DB_PORT})/${AUTH_DB_NAME}
DB_SCHEMA_TYPE: ${DATABASE_SCHEMA_TYPE}
SERVERS_REGISTRY_SERVICE_ADDRESS: servers-registry:8999
charserver:
build:
context: .
dockerfile: apps/charserver/Dockerfile
ports:
- "8087:8087"
environment:
PORT: 8087
CHAR_DB_CONNECTION: ${CHAR_DB_USER}:${CHAR_DB_PASS}@tcp(${CHAR_DB_HOST}:${CHAR_DB_PORT})/${CHAR_DB_NAME}
WORLD_DB_CONNECTION: ${WORLD_DB_USER}:${WORLD_DB_PASS}@tcp(${WORLD_DB_HOST}:${WORLD_DB_PORT})/${WORLD_DB_NAME}
chatserver:
build:
context: .
dockerfile: apps/chatserver/Dockerfile
environment:
NATS_URL: nats://nats:4222
PORT: 8992
guildserver:
build:
context: .
dockerfile: apps/guildserver/Dockerfile
depends_on:
- nats
environment:
CHAR_DB_CONNECTION: ${CHAR_DB_USER}:${CHAR_DB_PASS}@tcp(${CHAR_DB_HOST}:${CHAR_DB_PORT})/${CHAR_DB_NAME}
NATS_URL: nats://nats:4222
PORT: 8995
guidserver:
build:
context: .
dockerfile: apps/guidserver/Dockerfile
depends_on:
- redis
environment:
CHAR_DB_CONNECTION: ${CHAR_DB_USER}:${CHAR_DB_PASS}@tcp(${CHAR_DB_HOST}:${CHAR_DB_PORT})/${CHAR_DB_NAME}
REDIS_URL: redis://:@redis:6379/0
PORT: 8996
ports:
- '8996:8996'
mailserver:
build:
context: .
dockerfile: apps/mailserver/Dockerfile
environment:
CHAR_DB_CONNECTION: ${CHAR_DB_USER}:${CHAR_DB_PASS}@tcp(${CHAR_DB_HOST}:${CHAR_DB_PORT})/${CHAR_DB_NAME}
NATS_URL: nats://nats:4222
PORT: 8997
ports:
- '8997:8997'
groupserver:
build:
context: .
dockerfile: apps/groupserver/Dockerfile
environment:
CHAR_DB_CONNECTION: ${CHAR_DB_USER}:${CHAR_DB_PASS}@tcp(${CHAR_DB_HOST}:${CHAR_DB_PORT})/${CHAR_DB_NAME}
NATS_URL: nats://nats:4222
PORT: 8998
ports:
- '8998:8998'
gameserver_tc:
build:
context: .
dockerfile: game-server/trinitycore/Dockerfile
volumes:
- ${CORE_ETC_PATH}:/repo/bin/etc
- ${CORE_DATA_PATH}:/data
environment:
TC_LOGIN_DATABASE_INFO: ${AUTH_DB_HOST};${AUTH_DB_PORT};${AUTH_DB_USER};${AUTH_DB_PASS};${AUTH_DB_NAME}
TC_WORLD_DATABASE_INFO: ${WORLD_DB_HOST};${WORLD_DB_PORT};${WORLD_DB_USER};${WORLD_DB_PASS};${WORLD_DB_NAME}
TC_CHARACTER_DATABASE_INFO: ${CHAR_DB_HOST};${CHAR_DB_PORT};${CHAR_DB_USER};${CHAR_DB_PASS};${CHAR_DB_NAME}
TC_CONSOLE_ENABLE: 0
TC_RA_ENABLE: 0
TC_SOAP_ENABLE: 0
TC_DATA_DIR: /data
CHARACTER_GUIDS_BUFFER_SIZE: 5
ITEM_GUIDS_BUFFER_SIZE: 50
NATS_URL: nats://nats:4222
GRPC_PORT: 9509
GUID_PROVIDER_SERVICE_ADDRESS: guidserver:8996
SERVERS_REGISTRY_SERVICE_ADDRESS: servers-registry:8999
profiles:
- tc
gameserver_ac:
build:
context: .
dockerfile: game-server/azerothcore/Dockerfile
volumes:
- ${CORE_ETC_PATH}:/repo/bin/etc
- ${CORE_DATA_PATH}:/data
environment:
AC_LOGIN_DATABASE_INFO: ${AUTH_DB_HOST};${AUTH_DB_PORT};${AUTH_DB_USER};${AUTH_DB_PASS};${AUTH_DB_NAME}
AC_WORLD_DATABASE_INFO: ${WORLD_DB_HOST};${WORLD_DB_PORT};${WORLD_DB_USER};${WORLD_DB_PASS};${WORLD_DB_NAME}
AC_CHARACTER_DATABASE_INFO: ${CHAR_DB_HOST};${CHAR_DB_PORT};${CHAR_DB_USER};${CHAR_DB_PASS};${CHAR_DB_NAME}
AC_CONSOLE_ENABLE: 0
AC_RA_ENABLE: 0
AC_SOAP_ENABLE: 0
AC_DATA_DIR: /data
AC_CLUSTER_ENABLED: 1
CHARACTER_GUIDS_BUFFER_SIZE: 5
ITEM_GUIDS_BUFFER_SIZE: 50
NATS_URL: nats://nats:4222
GRPC_PORT: 9509
GUID_PROVIDER_SERVICE_ADDRESS: guidserver:8996
SERVERS_REGISTRY_SERVICE_ADDRESS: servers-registry:8999
profiles:
- ac
nats:
image: nats:2.10-alpine
expose:
- "4222"
ports:
- "4222:4222"
- "8222:8222"
hostname: nats-server
redis:
image: redis:7.2-alpine
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./cache:/data