-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
143 lines (128 loc) · 2.85 KB
/
docker-compose.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.8"
services:
##########
# Initialisers
# These are "initial" Docker images, setting basics like locales
# "app" user and some minimal required packages.
init:
image: base:init
build:
context: init
dockerfile: init.dockerfile
minecraft-downloads:
image: base:minecraft-downloads
build:
context: init
dockerfile: minecraft-downloads.dockerfile
depends_on:
- init
java11:
image: base:java11
build:
context: .
dockerfile: java11.dockerfile
depends_on:
- init
java16:
image: base:java16
build:
context: .
dockerfile: java16.dockerfile
depends_on:
- init
java17:
image: base:java17
build:
context: .
dockerfile: java17.dockerfile
depends_on:
- init
spigot11:
image: spigot:${VERSION:-1.15.2}
build:
args:
VERSION: ${VERSION:-1.15.2}
context: .
dockerfile: spigot11.dockerfile
depends_on:
- java11
ports:
- ${PORT:-25565}:${PORT_INSIDE:-25565}
volumes:
- ${DIR:-/home/minecraft/minecraft}:/minecraft
tty: true
spigot16:
image: spigot:${VERSION:-1.17.1}
build:
args:
VERSION: ${VERSION:-1.17.1}
context: .
dockerfile: spigot16.dockerfile
depends_on:
- java16
ports:
- ${PORT:-25565}:${PORT_INSIDE:-25565}
volumes:
- ${DIR:-/home/minecraft/minecraft}:/minecraft
tty: true
forge16:
image: forge:${VERSION:-1.17.1}
build:
args:
VERSION: ${VERSION:-1.17.1}
BUILD_NUM: ${BUILD_NUM:-37.1.1}
context: .
dockerfile: forge16.dockerfile
depends_on:
- minecraft-downloads
- java16
ports:
- ${PORT:-25565}:${PORT_INSIDE:-25565}
volumes:
- ${DIR:-/home/minecraft/minecraft}:/minecraft
tty: true
forge17:
image: forge:${VERSION:-1.18.1}
build:
args:
VERSION: ${VERSION:-1.18.1}
BUILD_NUM: ${BUILD_NUM:-39.0.66}
context: .
dockerfile: forge17.dockerfile
depends_on:
- minecraft-downloads
- java17
ports:
- ${PORT:-25565}:${PORT_INSIDE:-25565}
volumes:
- ${DIR:-/home/minecraft/minecraft}:/minecraft
tty: true
minecraft:
image: minecraft_server:${VERSION:-1.15.2}
build:
args:
VERSION: ${VERSION:-1.15.2}
context: .
dockerfile: "minecraft-server.dockerfile"
depends_on:
- minecraft-downloads
- java16
ports:
- ${PORT:-25565}:${PORT_INSIDE:-25565}
volumes:
- ${DIR:-/home/minecraft/minecraft}:/minecraft
tty: true
multiverse:
image: multiverse
build:
context: .
dockerfile: multiverse.dockerfile
depends_on:
- init
worldedit:
image: worldedit
build:
context: .
dockerfile: worldedit.dockerfile
depends_on:
- init