-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
98 lines (98 loc) · 2.6 KB
/
docker-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
version: '3'
services:
mysql-master:
environment:
- MYSQL_ROOT_PASSWORD=${MASTER_MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${MASTER_DATABASE_USER}
- MYSQL_PASSWORD=${MASTER_DATABASE_PASSWORD}
- MYSQL_DATABASE=master
build:
context: .
dockerfile: mysql-base/Dockerfile
args:
- SQL_FILE=master.sql
volumes:
- master-data:/var/lib/mysql
mysql-admin:
environment:
- MYSQL_ROOT_PASSWORD=${ADMIN_MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${ADMIN_DATABASE_USER}
- MYSQL_PASSWORD=${ADMIN_DATABASE_PASSWORD}
- MYSQL_DATABASE=admin
build:
context: .
dockerfile: mysql-base/Dockerfile
args:
- SQL_FILE=admin.sql
volumes:
- admin-data:/var/lib/mysql
mysql-atavism:
environment:
- MYSQL_ROOT_PASSWORD=${ATAVISM_MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${ATAVISM_DATABASE_USER}
- MYSQL_PASSWORD=${ATAVISM_DATABASE_PASSWORD}
- MYSQL_DATABASE=atavism
build:
context: .
dockerfile: mysql-base/Dockerfile
args:
- SQL_FILE=atavism.sql
volumes:
- atavism-data:/var/lib/mysql
mysql-world:
environment:
- MYSQL_ROOT_PASSWORD=${WORLD_MYSQL_ROOT_PASSWORD}
- MYSQL_USER=${WORLD_DATABASE_USER}
- MYSQL_PASSWORD=${WORLD_DATABASE_PASSWORD}
- MYSQL_DATABASE=world_content
build:
context: .
dockerfile: mysql-base/Dockerfile
args:
- SQL_FILE=world_content.sql
volumes:
- world-data:/var/lib/mysql
world:
build:
context: .
dockerfile: all-in-one/Dockerfile
volumes:
- world-logs:/atavism_server/logs
environment:
- ATAVISM_EMAIL=${ATAVISM_EMAIL}
- ATAVISM_LICENCE_KEY=${ATAVISM_LICENCE_KEY}
- ADMIN_DATABASE_USER=${ADMIN_DATABASE_USER}
- ADMIN_DATABASE_PASSWORD=${ADMIN_DATABASE_PASSWORD}
- MASTER_DATABASE_USER=${ADMIN_DATABASE_USER}
- MASTER_DATABASE_PASSWORD=${ADMIN_DATABASE_PASSWORD}
- WORLD_DATABASE_USER=${ADMIN_DATABASE_USER}
- WORLD_DATABASE_PASSWORD=${ADMIN_DATABASE_PASSWORD}
- ATAVISM_DATABASE_USER=${ADMIN_DATABASE_USER}
- ATAVISM_DATABASE_PASSWORD=${ADMIN_DATABASE_PASSWORD}
ports:
- 5042:5042/tcp
- 5052:5052/udp
- 5566:5566/tcp
- 9005:9005/tcp
- 9010:9010/udp
depends_on:
- mysql-master
links:
- mysql-master
- mysql-admin
- mysql-atavism
- mysql-world
volumes:
admin-data:
driver: local
atavism-data:
driver: local
master-data:
driver: local
world-data:
driver: local
world-logs:
driver: local
networks:
backend:
driver: bridge