-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
147 lines (139 loc) · 2.81 KB
/
compose.yml
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
services:
db-seed:
container_name: maple2-db-seed
image: mcr.microsoft.com/dotnet/sdk:8.0
entrypoint: /app/Maple2.Database.Seed/docker-entrypoint.sh
depends_on:
- mysql
links:
- mysql
env_file:
- .env
environment:
DB_IP: mysql
volumes:
- .:/app
- dotnet_tools:/root/.dotnet/tools
file-ingest:
container_name: maple2-file-ingest
image: mcr.microsoft.com/dotnet/sdk:8.0
working_dir: /app/Maple2.File.Ingest
command: dotnet run
depends_on:
- mysql
links:
- mysql
env_file:
- .env
environment:
DB_IP: mysql
MS2_DATA_FOLDER: /ClientData
volumes:
- .:/app
- ${MS2_DOCKER_DATA_FOLDER}:/ClientData
login:
build:
context: .
dockerfile: ./Maple2.Server.Login/Dockerfile
container_name: maple2-login
image: maple2/login
command: dotnet Maple2.Server.Login.dll
depends_on:
mysql:
condition: service_started
world:
condition: service_started
ports:
- 20001:20001
links:
- world
env_file:
- .env
environment:
DB_IP: mysql
WORLD_SERVICE: world
world:
build:
context: .
dockerfile: ./Maple2.Server.World/Dockerfile
container_name: maple2-world
image: maple2/world
command: dotnet Maple2.Server.World.dll
depends_on:
- mysql
ports:
- 21001:21001
env_file:
- .env
environment:
DB_IP: mysql
CHANNEL_SERVICE: "game-main,game-alt"
game-main:
build:
context: .
dockerfile: ./Maple2.Server.Game/Dockerfile
image: maple2/game
depends_on:
- mysql
- world
ports:
- 20002:20002
- 21002:21002
env_file:
- .env
environment:
DB_IP: mysql
GAME_CHANNEL: 1
GAME_PORT: 20002
GRPC_CHANNEL_PORT: 21002
WORLD_SERVICE: world
GAME_IP: "127.0.0.1"
game-alt:
build:
context: .
dockerfile: ./Maple2.Server.Game/Dockerfile
image: maple2/game
depends_on:
- mysql
- world
ports:
- 20003:20003
- 21003:21003
env_file:
- .env
environment:
DB_IP: mysql
GAME_CHANNEL: 2
GAME_PORT: 20003
GRPC_CHANNEL_PORT: 21003
WORLD_SERVICE: world
GAME_IP: "127.0.0.1"
web:
build:
context: .
dockerfile: ./Maple2.Server.Web/Dockerfile
image: maple2/web
depends_on:
- mysql
ports:
- 80:80
- 443:443
env_file:
- .env
environment:
DB_IP: mysql
mysql:
image: mysql:8.0
restart: unless-stopped
container_name: maple2-db
env_file:
- .env
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- mysql:/var/lib/mysql
ports:
- 3306:3306
volumes:
dotnet_tools:
mysql: