forked from m50dkp/trinitycore-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
56 lines (53 loc) · 1.85 KB
/
docker-compose.yaml
File metadata and controls
56 lines (53 loc) · 1.85 KB
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
version: "3.7"
services:
# accessible at //trinitycore-db:3306 inside the swarm
trinitycore-db:
image: mariadb:latest
#image: mysql:8-oracle
restart: always
network_mode: "host"
volumes:
# store database outside the container
- ./containerfs/tc-db/mariadb:/var/lib/mysql:delegated
#- ./containerfs/tc-db/mysql:/var/lib/mysql:delegated
# mariadb image will load all *.sql files on first boot
- ./containerfs/tc-server/source/sql/create/create_mysql.sql:/docker-entrypoint-initdb.d/000_create_mysql.sql
- ./containerfs/tc-db/grants.sql:/docker-entrypoint-initdb.d/001_grants.sql
environment:
MYSQL_ROOT_PASSWORD: security-through-subnets
TZ: Europe/Berlin
trinitycore-worldserver:
image: tc-builder
network_mode: "host"
command: >
/bin/sh -c 'wait-port localhost:3306 &&
/hostfs/tc-server/dist/bin/worldserver'
working_dir: /hostfs/tc-wd
tty: true # Prevent prompt from spamming stdout
stdin_open: true
depends_on:
- "trinitycore-db"
volumes:
- ./containerfs:/hostfs:delegated
# pass custom config into expected location for trinitycore
- ./containerfs/tc-conf:/hostfs/tc-server/dist/etc
- ./containerfs/tc-server/source:/tc-server-source
environment:
TZ: Europe/Berlin
trinitycore-authserver:
image: tc-builder
network_mode: "host"
command: >
/bin/sh -c 'wait-port localhost:3306 &&
wait-port localhost:8085 &&
/hostfs/tc-server/dist/bin/authserver'
working_dir: /hostfs/tc-wd
tty: true # Prevent prompt from spamming stdout
depends_on:
- "trinitycore-db"
volumes:
- ./containerfs:/hostfs:delegated
# pass custom config into expected location for trinitycore
- ./containerfs/tc-conf:/hostfs/tc-server/dist/etc
environment:
TZ: Europe/Berlin