first commit

This commit is contained in:
Johan Koke 2022-08-17 14:53:38 +00:00
commit 56b86ad91b
4 changed files with 57 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.env
data/

0
README.md Normal file
View File

26
docker-compose.yaml Normal file
View File

@ -0,0 +1,26 @@
version: '3.4'
services:
bds:
container_name: ${containerprefix}-${servername}
image: itzg/minecraft-bedrock-server
environment:
EULA: "TRUE"
GAMEMODE: ${gamemode}
DIFFICULTY: ${difficulty}
VERSION: ${version}
SERVER_NAME: ${servername}
DIFFICULTY: ${difficulty}
ALLOW_CHEATS: ${cheats}
LEVEL_SEED: ${seed}
MAX_PLAYERS: ${max_players}
OPS: ${ops}
ports:
- ${port}:19132/udp
volumes:
- ./data:/data
stdin_open: true
tty: true

28
sample.env Normal file
View File

@ -0,0 +1,28 @@
containerprefix=mc
servername=narners
# --------------- Version
# find latest version at https://www.minecraft.net/en-us/download/server/bedrock
# just hover mouse curser over latest download link to get just the version number
# https://minecraft.azureedge.net/bin-linux/bedrock-server- "1.19.20.02" .zip
version=1.19.20.02
# --------------- exposed port
# This is the mapped UDP port for this particular server.
# Select ports in a range between 19132 - 191500
port=19135
# --------------- Difficulty
# - peaceful (0)
# - easy (1)
# - normal (2)
# - hard (3)
difficulty=1
# --------------- Gamemode
# - survival (0)
# - creative (1)
# - adventure (2)
gamemode=1
# Seed - change ot any alphanumeric value
seed=100208
# --------------- Max number of players
max_players=10
# Allow cheats
cheats=TRUE