-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
66 lines (61 loc) · 1.5 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
version: "3.8"
services:
client-minecraft-server:
container_name: worldql-client-server-node
build:
dockerfile: Docker/mammothClientServer.dockerfile
context: .
environment:
WQL_CONTROL_PLANE_HOST: "control-plane"
WQL_CONTROL_PLANE_HANDSHAKE_PORT: "5556"
WQL_CONTROL_PLANE_PUSH_PORT: "5555"
WQL_SELF_IDENT_HOST: "docker"
links:
- control-plane
depends_on:
- control-plane
ports:
- "25565:25565"
networks:
worldql:
control-plane:
container_name: worldql-mammoth-control-plane
build:
dockerfile: Docker/mammothControlPlane.dockerfile
context: .
environment:
WQL_USER: ${WQL_USER}
WQL_PASSWORD: ${WQL_PASSWORD}
WQL_DB: ${WQL_DATABASE}
WQL_HOST: "postgres-db" # Resolves to the postgres DB's internal IP
links:
- postgres-db
depends_on:
- postgres-db
networks:
worldql:
postgres-db:
image: postgres:13-alpine
environment:
POSTGRES_USER: ${WQL_USER}
POSTGRES_PASSWORD: ${WQL_PASSWORD}
POSTGRES_DB: ${WQL_DATABASE}
restart: always
networks:
worldql:
# Uncomment this section to expose an adminer GUI to have a tool available for exploring the database
debug-adminer:
image: adminer:latest
restart: always
ports:
- "8080:8080"
environment:
ADMINER_DEFAULT_SERVER: "postgres-db"
links:
- postgres-db
depends_on:
- postgres-db
networks:
worldql:
networks:
worldql: