forked from hexparrot/mineos-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (52 loc) · 2.1 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:
mineos:
image: hexparrot/mineos:latest
container_name: mineos_server
networks:
- mineos
restart: unless-stopped
# Adjust as needed; if this is too short, stopping the container
# may corrupt map data
stop_grace_period: 10m
volumes:
# Using a bind mapping is preferrable here due to how docker
# stores names volumes by default in /var/lib/docker/volumes
# with permissions that prevent normal users from accessing
# the folder structure.
- /var/games/mineos/minecraft:/var/games/minecraft
environment:
# Should the web interface use HTTPS or HTTP?
# Valid entries are "true" and "false" (with quotes)
USE_HTTPS: "true"
# What port should the web interface listen on?
# This is independant of the USE_HTTPS setting.
SERVER_PORT: 8443
# On startup, mineos will check if an account of this name exists.
# If it does not exist, one will be created. This account, and
# any other created with this variable will be permitted to login
# to the web interface.
USER_NAME: mc
# If the account listed above does not already exist, when mineos
# creates it, it will do so with UID. If an account with this UID
# already exists, account creation will be aborted.
USER_UID: 1000
# If the account is being created, it will use either the password
# set below, or a random, 20 character password will generated for
# you and displayed in the console log. After first launch, you
# should check the log.
USER_PASSWORD: random_see_log
ports:
# HTTPS port for web interface. If you change the SERVER_PORT
# variable, also change this mapping.
- "8443:8443/tcp"
# Minecraft server ports. 25565 is the default, but is you plan
# on running multiple servers at the same time, each will need
# a unique port unless you are using bungiecord.
# Expand this range as needed.
- "25565-25570:25565-25570/tcp"
- "25565-25570:25565-25570/udp"
volumes:
mineos_data:
networks:
mineos: