-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
115 lines (103 loc) · 2.26 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
103
104
105
106
107
108
109
110
111
112
113
114
115
version: '3.9'
x-vmangos-shared-conf: &vmangos-shared-conf
# environment:
volumes:
- "./etc:/opt/etc:rw"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "./server:/opt/server:rw"
- "${WOW_PATH}:/opt/wow:rw"
restart: unless-stopped
tty: true
x-build-shared-conf: &build-shared-conf
dockerfile: Dockerfile
args:
USER_ID: ${USER_ID:-0}
GROUP_ID: ${GROUP_ID:-0}
services:
compile:
image: vmangos:compile
container_name: vmangos-compile
env_file:
- ./env/compile.env
- ./env/shared.env
build:
context: containers/compile
<<: *build-shared-conf
<<: *vmangos-shared-conf
restart: "no"
profiles:
- compile
extract:
image: vmangos:extract
container_name: vmangos-extract
env_file:
- ./env/extract.env
build:
context: containers/extract
<<: *build-shared-conf
<<: *vmangos-shared-conf
mangosd:
image: vmangos:mangosd
container_name: vmangos-mangosd
build:
context: containers/mangosd
<<: *build-shared-conf
ports:
- "3443:3443"
- "3444:3444"
- "7878:7878"
- "8085:8085"
<<: *vmangos-shared-conf
mariadb:
image: vmangos:mariadb
container_name: vmangos-mariadb
hostname: mariadb
env_file:
- ./env/mariadb.env
- ./env/shared.env
build:
context: containers/mariadb
<<: *build-shared-conf
ports:
- "3306:3306"
<<: *vmangos-shared-conf
phpmyadmin:
image: phpmyadmin
container_name: vmangos-phpmyadmin
ports:
- "8080:80"
environment:
- PMA_HOST=mariadb
- PMA_USER=root
- PMA_PASSWORD=pwd
restart: "no"
depends_on:
- mariadb
profiles:
- dev
realmd:
image: vmangos:realmd
container_name: vmangos-realmd
build:
context: containers/realmd
<<: *build-shared-conf
ports:
- "3724:3724"
<<: *vmangos-shared-conf
web:
image: vmangos:web
container_name: vmangos-web
build:
context: containers/web
<<: *build-shared-conf
ports:
- "80:80"
<<: *vmangos-shared-conf
volumes:
- "./www/htdocs:/htdocs:rw"
profiles:
- web
networks:
default:
name: vmangos-server-network