From f8700aea4c5ffe42e4078aa97353a0407bf878ff Mon Sep 17 00:00:00 2001 From: TiynGER Date: Fri, 12 Mar 2021 00:15:54 +0100 Subject: [PATCH] Minecraft: created minecraft page Added a page for Minecraft. Added a section on how to setup a minecraft server using docker. --- wiki/minecraft.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 wiki/minecraft.md diff --git a/wiki/minecraft.md b/wiki/minecraft.md new file mode 100755 index 0000000..c66d96f --- /dev/null +++ b/wiki/minecraft.md @@ -0,0 +1,58 @@ +# Minecraft + +[Minecraft](https://www.minecraft.net) is a sandbox video game. + +## Setup Server with Docker + +The container and documentation was made by [itzg](https://hub.docker.com/r/itzg/minecraft-server). + +### Environment-variables + +Set the following variables with the -e tag. + +| Name | Usage | Default | +| ------------- | -------------------------------------------------------------- | -------------------------------------------- | +| `EULA` | Accept the EULA | | +| `TZ` | Specify Timezone | `Europe/London` | +| `SERVER_NAME` | Specify the Servername | | +| `OPS` | Specify the admins of the server | | +| `WHITELIST` | Specify allowed users (if none are specified all are accepted) | | +| `ICON` | Link the Icon of the Server | | +| `MOTD` | Set the Message of the day | "A Paper Minecraft Server powered by Docker" | + +### Volumes + +Set the following volumes with the -v tag. + +| Volume-Name | Container mount | Description | +| ----------- | --------------- | ------------------------------ | +| `minecraft` | `/data` | location for all relevant data | + +### Ports + +Set the following ports with the -p tag. + +| Container Port | Recommended outside port | Protocol | Description | +| -------------- | ------------------------ | --------- | ------------------ | +| `25565` | `25565` | Minecraft | Port for Minecraft | + +### Rebuild + +```shell +#!/bin/sh +docker stop minecraft +docker rm minecraft +docker pull itzg/minecraft-server +docker run --name minecraft \ + --restart unless-stopped \ + -p 25565:25565 \ + -v minecraft:/data \ + -e EULA=TRUE \ + -e TZ=Europe/Berlin \ + -e SERVER_NAME="ServerName" \ + -e OPS=admin1,admin2 \ + -e WHITELIST=user1,user2 \ + -e ICON=https:// \ + -e MOTD="Message of the day" \ + -d itzg/minecraft-server +```