forked from The-Alpha-Project/alpha-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (87 loc) · 2.07 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
version: '3.9'
x-${PROJECT}-shared-conf: &shared-conf
environment:
- TZ=${TIME_ZONE}
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_USERNAME=${MYSQL_USERNAME}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- CONSOLE_MODE=${CONSOLE_MODE}
- FORWARD_ADDRESS_OVERRIDE=${FORWARD_ADDRESS_OVERRIDE}
volumes:
- .:/var/wow/
restart: on-failure
depends_on:
- sql
services:
main:
image: ${PROJECT}:${OS_TAG}
container_name: ${PROJECT}
ipc: "host"
build: {context: ., dockerfile: etc/docker/main/Dockerfile}
ports:
- "3443:3443"
- "7878:7878"
- "8100:8100"
- "9090:9090"
- "9100:9100"
<<: *shared-conf
world:
image: ${PROJECT}-world:${OS_TAG}
container_name: ${PROJECT}-world
ipc: "host"
build: {context: ., dockerfile: etc/docker/world/Dockerfile}
ports:
- "3443:3443"
- "7878:7878"
- "8100:8100"
<<: *shared-conf
profiles:
- world
realm:
image: ${PROJECT}-realm:${OS_TAG}
container_name: ${PROJECT}-realm
ipc: "host"
build: {context: ., dockerfile: etc/docker/realm/Dockerfile}
ports:
- "9090:9090"
- "9100:9100"
<<: *shared-conf
profiles:
- realm
sql:
image: ${PROJECT}-db:${DB_TAG}
container_name: ${PROJECT}-db
build: {context: ., dockerfile: etc/docker/sql/Dockerfile}
environment:
- MYSQL_ROOT_PASSWORD=pwd
ports:
- "3306:3306"
volumes:
- ./etc/databases/:/etc/databases/
restart: on-failure
phpmyadmin:
image: ${PHPAD_TAG}
ports:
- "8080:80"
environment:
- PMA_HOST=${MYSQL_HOST}
- PMA_USER=${MYSQL_USERNAME}
- PMA_PASSWORD=${MYSQL_PASSWORD}
restart: "no"
profiles:
- dev
inotify:
image: ${PROJECT}-inotify:${INO_TAG}
build: {context: ., dockerfile: etc/docker/inotify/Dockerfile}
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- .:/var/wow/
environment:
- CONTAINER=${PROJECT}
- VOLUMES=/var/wow
restart: on-failure
profiles:
- dev
networks:
default:
name: ${PROJECT}-network