forked from AAEmu/AAEmu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
78 lines (73 loc) · 2.38 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
version: '3.1'
services:
db:
image: mysql:8.0
restart: unless-stopped
command: --default_authentication_plugin=mysql_native_password
volumes:
- db-data:/var/lib/mysql
- ./SQL/aaemu_login.sql:/docker-entrypoint-initdb.d/aaemu_login.sql
- ./SQL/aaemu_game.sql:/docker-entrypoint-initdb.d/aaemu_game.sql
- ./SQL/examples/example-server.sql:/docker-entrypoint-initdb.d/example-server.sql
- ./SQL/examples/test-user.sql:/docker-entrypoint-initdb.d/test-user.sql
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- 3306:3306
adminer:
image: adminer
restart: unless-stopped
environment:
ADMINER_DEFAULT_DB_DRIVER: mysql
ADMINER_DEFAULT_DB_HOST: db
ADMINER_DESIGN: nette
ports:
- 8080:8080
depends_on:
- db
login:
build:
context: .
dockerfile: ./AAEmu.Login/Dockerfile
args:
- CONFIGURATION=${BUILD_CONFIGURATION}
- FRAMEWORK=${BUILD_FRAMEWORK}
- RUNTIME=${BUILD_RUNTIME}
- DB_HOST=db
- DB_PORT=3306
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
image: aaemu-login:${PROJECT_VERSION_PREFIX}-${PROJECT_VERSION_SUFFIX}
restart: unless-stopped
environment:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
ports:
- 1237:1237
depends_on:
- db
game:
build:
context: .
dockerfile: ./AAEmu.Game/Dockerfile
args:
- CONFIGURATION=${BUILD_CONFIGURATION}
- FRAMEWORK=${BUILD_FRAMEWORK}
- RUNTIME=${BUILD_RUNTIME}
- DB_HOST=db
- DB_PORT=3306
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- LOGIN_HOST=login
- LOGIN_PORT=1234
- GAME_DB_URL=${GAME_DB_URL}
image: aaemu-game:${PROJECT_VERSION_PREFIX}-${PROJECT_VERSION_SUFFIX}
restart: unless-stopped
environment:
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
ports:
- 1239:1239
- 1250:1250
depends_on:
- login
volumes:
db-data: