forked from LandSandBoat/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.03 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
version: '3.1'
services:
# The DB service
db:
image: mariadb
restart: always
environment:
MYSQL_USER: xiuser
MYSQL_PASSWORD: xipassword
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: xidb
# Run all the .sql files in the /sql directory to initalize the DB. This only hapens the first time this service is started and will not handle additions/modifications
volumes:
- ./sql:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
# Ease of access tool for the DB, you can type in localhost:8080 to get a web interface to the DB. You can log in with root:wheel
db_admin_portal:
image: adminer
restart: always
depends_on:
- "db"
ports:
- 8080:8080
# The server service
game:
# Build whatever is in the Dockerfile in the server root folder
build: .
depends_on:
- "db"
ports:
# connect
- "54230:54230/tcp"
- "54231:54231/tcp"
- "54001:54001/tcp"
# search
- "54002:54002/tcp"
# game
- "54230:54230/udp"