Skip to content

Husono/docker-minecraft-basic-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Basic Server in Docker optimized for Unraid

This is a Basic Minecraft Server, with the basic configuration it will download and install a Vanilla Minecraft Server. You can also install a FTB (FeedTheBeast), Bukkit, Spigot,... server. Start the container for the first time let it do it's work and shut it down. After that copy over your favorite server executable (don't forget to set the Serverfile name to the same as you copied over) and start the container again or simply start the server if you wait for it to completely start if you want to play Minecraft Vanilla.

ATTENTION: Don't forget to accept the EULA down below and don't forget to edit the 'server.properties' file the server is by default configured to be a LAN server and to be not snooped.

CONSOLE: To connect to the console open up the terminal for this docker and type in: 'screen -xS Minecraft' (without quotes).

Env params

Name Value Example
SERVER_DIR Folder for gamefile /serverdata/serverfiles
RUNTIME_NAME Enter your extracted Runtime folder name. Don't change unless you are knowing what you are doing! jre1.8.0_211
JAR_NAME Executable jar file (Minecraft Serverfile) withouat the .jar extension. server
GAME_PARAMS Extra startup Parameters if needed (leave empty if not needed)
GAME_PORT TCP Gameport for the server 25565
XMX_SIZE Enter your XMX size in MB (XMX=The maximum heap size. The performance will decrease if the max heap value is set lower than the amount of live data. It will force frequent garbage collections in order to free up space). 1024
XMS_SIZE Enter your XMS size in MB (XMS=The initial and minimum heap size. It is recommended to set the minimum heap size equivalent to the maximum heap size in order to minimize the garbage collection). 1024
ACCEPT_EULA Head over to: https://account.mojang.com/documents/minecraft_eula to read the EULA. (If you accept the EULA change the value to 'true' without quotes). true
UID User Identifier 99
GID Group Identifier 100

Run example

docker run --name MinecraftBasicServer -d \
	-p 25565:25565 \
	--env 'RUNTIME_NAME=jre1.8.0_211' \
	--env 'JAR_NAME=server' \
	--env 'GAME_PORT=25565' \
	--env 'XMX_SIZE=1024' \
    --env 'XMS_SIZE=1024' \
    --env 'ACCEPT_EULA=true' \
	--env 'UID=99' \
	--env 'GID=100' \
	--volume /mnt/user/appdata/minecraftbasicserver:/serverdata/serverfiles \
	ich777/minecraftbasicserver

NOTE You can also forward port the TCP port 25575 if you want to connect to the RCON console.

This Docker was mainly edited for better use with Unraid, if you don't use Unraid you should definitely try it!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.3%
  • Dockerfile 13.7%