1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-10 18:47:45 +02:00
wiki/wiki/docker-images/itzg_-_minecraft-server.md
TiynGER 046b9bc995 docker-image folder added
The docker-images where scattered across different files.
For faster access i moved them to an extra folder and linked them if they're needed elsewhere.
entries that where outside this folder and only contained basic documentation of the docker image where removed.
2021-03-16 15:34:35 +01:00

55 lines
2.3 KiB
Markdown
Executable File

# itzg - minecraft-server
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://<path to image> \
-e MOTD="Message of the day" \
-d itzg/minecraft-server
```