Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binhex/arch-minecraftserver
Docker build script for Arch Linux base with Minecraft Java server
https://github.com/binhex/arch-minecraftserver
arch-linux docker java minecraft minecraft-server
Last synced: 2 months ago
JSON representation
Docker build script for Arch Linux base with Minecraft Java server
- Host: GitHub
- URL: https://github.com/binhex/arch-minecraftserver
- Owner: binhex
- License: gpl-3.0
- Created: 2019-11-05T14:36:55.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T14:19:00.000Z (3 months ago)
- Last Synced: 2024-10-23T16:51:32.198Z (3 months ago)
- Topics: arch-linux, docker, java, minecraft, minecraft-server
- Language: Shell
- Homepage:
- Size: 111 KB
- Stars: 18
- Watchers: 2
- Forks: 27
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Application**
[Minecraft Server](https://www.minecraft.net/en-us/download/server/)
**Description**
Minecraft is a sandbox video game created by Swedish game developer Markus Persson and released by Mojang in 2011. The game allows players to build with a variety of different blocks in a 3D procedurally generated world, requiring creativity from players. Other activities in the game include exploration, resource gathering, crafting, and combat. Multiple game modes that change gameplay are available, including—but not limited to—a survival mode, in which players must acquire resources to build the world and maintain health, and a creative mode, where players have unlimited resources to build with.
**Build notes**
Latest stable Minecraft Java release from Mojang.
**Usage**
```
docker run -d \
-p :8222/tcp \
-p :25565 \
--name= \
-v :/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_BACKUP_HOURS= \
-e PURGE_BACKUP_DAYS= \
-e ENABLE_WEBUI_CONSOLE= \
-e ENABLE_WEBUI_AUTH= \
-e WEBUI_USER= \
-e WEBUI_PASS= \
-e WEBUI_CONSOLE_TITLE= \
-e CUSTOM_JAR_PATH= \
-e JAVA_VERSION=<8|11|17|latest> \
-e JAVA_INITIAL_HEAP_SIZE= \
-e JAVA_MAX_HEAP_SIZE= \
-e JAVA_MAX_THREADS= \
-e JAVA_CUSTOM_ARGS= \
-e STARTUP_CMD= \
-e UMASK= \
-e PUID= \
-e PGID= \
binhex/arch-minecraftserver
```Please replace all user variables in the above command defined by <> with the correct values.
**Access Minecraft Server console**
Requires `-e ENABLE_WEBUI_CONSOLE=yes`
`http://:8222`
**Example**
```
docker run -d \
-p 8222:8222/tcp \
-p 25565:25565 \
--name=minecraftserver \
-v /apps/docker/minecraftserver:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_BACKUP_HOURS=12 \
-e PURGE_BACKUP_DAYS=14 \
-e ENABLE_WEBUI_CONSOLE=yes \
-e ENABLE_WEBUI_AUTH=yes \
-e WEBUI_USER=admin \
-e WEBUI_PASS=minecraft \
-e WEBUI_CONSOLE_TITLE='Minecraft Server' \
-e CUSTOM_JAR_PATH=/config/minecraft/paperclip.jar \
-e JAVA_VERSION=latest \
-e JAVA_INITIAL_HEAP_SIZE=512M \
-e JAVA_MAX_HEAP_SIZE=1024M \
-e JAVA_MAX_THREADS=1 \
-e JAVA_CUSTOM_ARGS='' \
-e STARTUP_CMD=gamerule reducedDebugInfo true \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-minecraftserver
```**Notes**
If you do **NOT** want world backups and/or purging of backups then set the value to '0' for env vars 'CREATE_BACKUP_HOURS' and/or 'PURGE_BACKUP_DAYS'.
Env var 'CUSTOM_JAR_PATH' is optional and allows you to define a specific jar to run, if not specified then the latest Mojang Minecraft jar will be used.
Env vars 'JAVA_INITIAL_HEAP_SIZE' value and 'JAVA_MAX_HEAP_SIZE' values must be a multiple of 1024 and greater than 2MB.
User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-
```
id
```
___
If you appreciate my work, then please consider buying me a beer :D[![PayPal donation](https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MM5E27UX6AUU4)
[Documentation](https://github.com/binhex/documentation) | [Support forum](https://forums.unraid.net/topic/84880-support-binhex-minecraftserver/)