-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
102 lines (93 loc) · 2.02 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
99
100
101
102
x-base-service: &base-service
build:
context: .
dockerfile: containers/eqemu-server/Dockerfile
environment: &base-environment
DATABASE_USER: ${DATABASE_USER:-eq}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-eq}
DATABASE_NAME: ${DATABASE_NAME:-eq}
SERVER_ADDRESS: ${SERVER_ADDRESS}
SERVER_SHORT_NAME: ${SERVER_SHORT_NAME:-EQMac Docker}
SERVER_LONG_NAME: ${SERVER_LONG_NAME:-EQMac Docker}
WAIT_HOSTS: db:3306
services:
shared:
<<: *base-service
command: /app/shared_memory
volumes:
- shared:/app/shared
depends_on:
- db
login:
<<: *base-service
command: /app/loginserver
ports:
- 6000:6000/tcp
- 6000:6000/udp
depends_on:
- db
world:
<<: *base-service
command: /app/world
environment:
<<: *base-environment
WAIT_PATHS: /app/shared/base_data
ports:
- 9000:9000/tcp
- 9000:9000/udp
volumes:
- shared:/app/shared
depends_on:
- db
- shared
zone:
<<: *base-service
command: ['/app/eqlaunch', 'dynzone1']
ports:
- 7000-7374:7000-7374/tcp
- 7000-7374:7000-7374/udp
volumes:
- shared:/app/shared
depends_on:
- db
- world
boats:
<<: *base-service
command: ['/app/eqlaunch', 'boats']
ports:
- 7375-7400:7375-7400/tcp
- 7375-7400:7375-7400/udp
volumes:
- shared:/app/shared
depends_on:
- db
- world
queryserv:
<<: *base-service
command: /app/queryserv
depends_on:
- db
- world
ucs:
<<: *base-service
command: /app/ucs
ports:
- 7778:7778/tcp
- 7778:7778/udp
depends_on:
- db
- world
db:
build:
context: .
dockerfile: containers/database/Dockerfile
environment:
MYSQL_RANDOM_ROOT_PASSWORD: enabled
MYSQL_USER: ${DATABASE_USER:-eq}
MYSQL_PASSWORD: ${DATABASE_PASSWORD:-eq}
MYSQL_DATABASE: ${DATABASE_NAME:-eq}
volumes:
- database:/var/lib/mysql
volumes:
shared:
database: