forked from tbowmo/docker-swarm-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminecraft.yml
62 lines (58 loc) · 1.26 KB
/
minecraft.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
version: '3.3'
services:
vanilla:
image: itzg/minecraft-server
ports:
- 25566:25565
volumes:
- /docker/minecraft-vanilla:/data
deploy:
placement:
constraints:
- node.labels.storage==yes
environment:
EULA: "TRUE"
ENABLE_RCON: "true"
RCON_PASSWORD: "minecraft"
RCON_PORT: 25575
VERISON: "LATEST"
snapshot:
image: itzg/minecraft-server
ports:
- 25567:25565
volumes:
- /docker/minecraft-snapshot:/data
deploy:
placement:
constraints:
- node.labels.storage==yes
environment:
EULA: "TRUE"
ENABLE_RCON: "true"
RCON_PASSWORD: "minecraft"
RCON_PORT: 25575
VERSION: "SNAPSHOT"
forge:
image: itzg/minecraft-server
ports:
- 25565:25565
volumes:
- /docker/minecraft-forge:/data
deploy:
placement:
constraints:
- node.labels.storage==yes
environment:
EULA: "TRUE"
ENABLE_RCON: "true"
RCON_PASSWORD: "minecraft"
RCON_PORT: 25575
TYPE: "FORGE"
VERSION: "LATEST"
rcon:
image: itzg/rcon
ports:
- "4326:4326"
- "4327:4327"
volumes:
- /docker/minecraft-rcon:/opt/rcon-web-admin/db"