Minecraft Bedrock Server container image able to run with Docker, Podman, or Kubernetes
Docker
docker run -Pd quay.io/parflesh/minecraft-bedrock
Podman
podman run -Pd quay.io/parflesh/minecraft-bedrock
Kubernetes
kubectl create deployment minecraft-bedrock --image quay.io/parflesh/minecraft-bedrock
kubectl expose deployment minecraft-bedrock --type=NodePort --port 19132 --protocol UDP
Openshift
oc new-app quay.io/parflesh/minecraft-bedrock --name minecraft-bedrock
oc expose dc/minecraft-bedrock --type=NodePort --port 19132 --protocol=UDP
DATA_DIR (optional; Default: /data): Location to store configuration files and worlds data
MCPROP_* (optional): Parsed to generate server.properties
Note: Available options can be retrieved from minecract bedrock server how to file in Bedrock Server Download
Logic:
- Strip MCPROP_
- change to lowercase
- convert _ to -
Examples:
- MCPROP_LEVEL_NAME=myworld
level-name=myworld - MCPROP_DIFFICULTY=3
difficulty=3
Mount $DATA_DIR to volume
Note: mount any/all of the following files into /opt/minecraft_bedrock
- server.properties
- whitelist.json
- permissions.json
Note: mount any/all as directory into /opt/minecraft_bedrock or store in DATA_DIR
- behavior_packs
- resource_packs