-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
64 lines (61 loc) · 1.82 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3"
services:
minecraft:
container_name: minecraft
image: itzg/minecraft-bedrock-server
restart: always
environment:
# Enable SSH
ENABLE_SSH: true
# Server settings
EULA: "TRUE"
GAMEMODE: survival
SERVER_NAME: Moaicraft
LEVEL_NAME: Moaiworld
LEVEL_SEED: -2746961253358476370
DIFFICULTY: normal
ALLOW_CHEATS: true
ALLOW_LIST: true
CLIENT_SIDE_CHUNK_GENERATION_ENABLED: false # Beware: enabling this may cause stuttering/freezing
MAX_THREADS: 0 # Maximum threads
VIEW_DISTANCE: 20
# Expose the mc-server-runner's SSH port to just the backup container
expose:
- 2222
ports:
- 19132:19132/udp
volumes:
- ./minecraft:/data
stdin_open: true
tty: true
backup:
container_name: backup
image: kaiede/minecraft-bedrock-backup
restart: always
depends_on:
# Make sure the minecraft service starts before the backup
minecraft:
condition: service_healthy
volumes:
# Map your backups folder into /backups
- ./backups:/backups
# Map the data folders for the server
- ./minecraft:/minecraft
# (Optional) Map a configuration folder separately from the backups.
- ./backup-config:/config
websocket:
container_name: websocket
image: joanroig/admincraft-websocket:latest
restart: always
depends_on:
# Make sure the minecraft service starts before the websockets service
minecraft:
condition: service_healthy
ports:
- 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock # Mount Docker socket
- ./certs:/usr/src/app/certs:ro
environment:
SECRET_KEY: 7VHKHrngbqrAvxrrDM4v4kjMtkhjhqK6RjvuzhTmNH4EaqbesTLBrna82ZGgiYf4
USE_SSL: "true" # Change to "false" to disable SSL