-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (41 loc) · 976 Bytes
/
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
version: "3.9"
services:
server:
build: ./ServerControler
ports:
- "25565:25565" #Default minecraft server port
- "4567:4567" #Default SparkJava port
deploy:
resources:
reservations:
memory: 1500M
volumes:
#- .:/code
#- logvolume01:/var/log
#- ./minecraft-world:/root/world
#- ./minecraft-logs:/root/logs
- ./server:/root/minecraft-server
links:
- db
depends_on:
- flyway
flyway:
image: dhoer/flyway:alpine
command: -url=jdbc:mysql://db -schemas=myschema -user=root -password=P@ssw0rd migrate
volumes:
- ./sql_versions:/flyway/sql
depends_on:
- db
db:
image: mysql
environment:
- MYSQL_ROOT_PASSWORD=P@ssw0rd
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- 3306:3306
volumes:
logvolume01: {}
minecraft-world:
driver: local
minecraft-logs:
driver: local