-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml.example
61 lines (61 loc) · 1.5 KB
/
docker-compose.yml.example
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
# yaml版本
version: 3
# 环境变量
vars:
minecraft_version: 1.20.1
# 服务
services:
# 服务器名称
minecraft:
# 容器镜像地址,请不要改动
image: whf-studio/mohist-docker:1.20.1
container_name: mohist-1.20.1
restart: always
stdin_open: true
tty: true
ports:
- 25565:25565/tcp
# rcon控制台
- 25575:25575/tcp
volumes:
- /pathRaw/to/your/data:/app
# 可选:将世界数据挂在单独的卷以免炸档
- world:/app/world
# Bungeecord 示例
services:
# Bungeecord
bungeecord:
image: azul/zulu-openjdk-alpine:20-jre-headless-latest
container_name: bungeecord
stdin_open: true
tty: true
restart: unless-stopped
ports:
- 25565:25565/tcp
- 25575:25575/tcp
- 25575:25575/udp
volumes: /pathRaw/to/your/data:/app
entrypoint: ["/usr/bin/java"]
cmd: ["-jar", "/app/bungeecord.jar", "@memorysize.txt", "@userjvmargs.txt", "-nogui"]
Lobby:
image: whf-studio/mohist-docker:1.20.1
container_name: lobby
stdin_open: true
tty: true
restart: unless-stopped
ports:
- 25565:25576/tcp
- 25575:25576/tcp
volumes: /pathRaw/to/your/data:/app
depends_on:
- bungeecord
main_server: example_server
image: whfstudio/mohist-docker:1.20.1
container_name: example_server
stdin_open: true
tty: true
restart: unless-stopped
ports:
- 25565:25569/tcp
- 25575:25579/tcp
volumes: /pathRaw/to/your/data:/app