• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

ich777/docker-minecraft-basic-server

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

ich777/docker-minecraft-basic-server

开源软件地址(OpenSource Url):

https://github.com/ich777/docker-minecraft-basic-server

开源编程语言(OpenSource Language):

Shell 90.5%

开源软件介绍(OpenSource Introduction):

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. If you want to copy over your favorite server executable (don't forget to set the Serverfile name to the same as you copied over without the '.jar' extension) 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.

UPDATE: If you set the variable GAME_V to 'latest' the container will check on every restart if there is a newer version available (if set to 'latest' the variable JAR_NAME has to be 'server').

JAVA RUNTIME: Enter your prefered Runtime 'basicjre'=jre8, 'jre11'=jre11, 'jre15'=jre15 Don't change unless you are knowing what you are doing! Please keep in mind if you change the runtime you have to delete the old runtime before!

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.

WEB CONSOLE: You can connect to the Minecraft console by opening your browser and go to HOSTIP:9011 (eg: 192.168.1.1:9011) or click on WebUI on the Docker page within Unraid.

Env params

Name Value Example
SERVER_DIR Folder for gamefile /serverdata/serverfiles
RUNTIME_NAME Enter your prefered Runtime 'basicjre'=jre8, 'jre11'=jre11, 'jre15'=jre15 Don't change unless you are knowing what you are doing! Please keep in mind if you change the runtime you have to delete the old runtime before! basicjre
JAR_NAME Executable jar file (Minecraft Serverfile) withouat the .jar extension. server
GAME_PARAMS Extra startup Parameters if needed (leave empty if not needed) empty
GAME_PORT TCP Gameport for the server 25565
GAME_V If set to 'latest' the JAR_NAME must be 'server' valid options are 'latest', 'custom' or simply leave empty latest
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
EXTRA_JVM_PARAMS Extra JVM startup Parameters if needed (leave empty if not needed) empty
JVM_CUSTOM_COMMAND Overrides all startup parameters for JVM like it is required for Forge v1.18+ empty
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 -p 9011:8080 \
	--env 'RUNTIME_NAME=basicjre' \
	--env 'JAR_NAME=server' \
	--env 'GAME_V=latest' \
	--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!

Support Thread: https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap