AppFeed/templates/ich777sRepository/ich777/MinecraftBasicServer.xml
Squidly271 b3878cd225 Redo
2020-12-03 07:42:32 -05:00

131 lines
8.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<Container version="2">
<Name>MinecraftBasicServer</Name>
<Repository>ich777/minecraftbasicserver</Repository>
<Registry>https://hub.docker.com/r/ich777/minecraftbasicserver/</Registry>
<Network>bridge</Network>
<Shell>sh</Shell>
<Privileged>false</Privileged>
<Support>https://forums.unraid.net/topic/79530-support-ich777-gameserver-dockers/</Support>
<Project>https://www.minecraft.net/</Project>
<Overview>This is a Basic Minecraft Server, with the basic configuration it will download and install a Vanilla Minecraft.&#13;
&#13;
You can also install a FTB (FeedTheBeast), Bukkit, Spigot,... server.&#13;
&#13;
Start the container for the first time let it do it's work and shut it down.&#13;
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.&#13;
&#13;
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').
&#13;
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.&#13;
CONSOLE: To connect to the console open up the terminal on the host machine and type in: 'docker exec -u minecraft -ti NAMEOFYOURCONTAINER screen -xS Minecraft' (without quotes) to exit the screen session press CTRL+A and then CTRL+D or simply close the terminal window in the first place.</Overview>
<WebUI></WebUI>
<Icon>https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/mc.png</Icon>
<ExtraParams>--restart=unless-stopped</ExtraParams>
<PostArgs></PostArgs>
<CPUset></CPUset>
<DonateText>If you like my work please </DonateText>
<DonateLink>https://www.paypal.me/chips777</DonateLink>
<DonateImg>https://raw.githubusercontent.com/ich777/docker-templates/master/ich777/images/donate.png</DonateImg>
<Networking>
<Mode>bridge</Mode>
<Publish>
<Port>
<HostPort>25565</HostPort>
<ContainerPort>25565</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
<Port>
<HostPort>25575</HostPort>
<ContainerPort>25575</ContainerPort>
<Protocol>tcp</Protocol>
</Port>
</Publish>
</Networking>
<Data>
<Volume>
<HostDir>/mnt/cache/appdata/minecraft</HostDir>
<ContainerDir>/serverdata/serverfiles</ContainerDir>
<Mode>rw</Mode>
</Volume>
</Data>
<Environment>
<Variable>
<Value>server</Value>
<Name>JAR_NAME</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>latest</Value>
<Name>GAME_V</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>GAME_PARAMS</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value></Value>
<Name>EXTRA_JVM_PARAMS</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>1024</Value>
<Name>XMS_SIZE</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>1024</Value>
<Name>XMX_SIZE</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>false</Value>
<Name>ACCEPT_EULA</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>basicjre</Value>
<Name>RUNTIME_NAME</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>99</Value>
<Name>UID</Name>
<Mode></Mode>
</Variable>
<Variable>
<Value>100</Value>
<Name>GID</Name>
<Mode></Mode>
</Variable>
</Environment>
<Config Name="ServerFiles" Target="/serverdata/serverfiles" Default="" Mode="rw" Description="Container Path: /serverdata/serverfiles" Type="Path" Display="always" Required="true" Mask="false">/mnt/cache/appdata/minecraft</Config>
<Config Name="Serverfile name" Target="JAR_NAME" Default="" Mode="" Description="Enter your executable jar file (Minecraft Serverfile) withouat the .jar extension." Type="Variable" Display="always" Required="true" Mask="false">server</Config>
<Config Name="Game version" Target="GAME_V" Default="" Mode="" Description="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' - available options are 'latest', 'custom' or simply leave empty)." Type="Variable" Display="always" Required="false" Mask="false">latest</Config>
<Config Name="Extra Game Parameters" Target="GAME_PARAMS" Default="" Mode="" Description="Enter your extra startup parameters otherwise leave blank!" Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="Extra JVM Parameters" Target="EXTRA_JVM_PARAMS" Default="" Mode="" Description="Enter your extra startup parameters for the JVM otherwise leave blank! (Only change if you know what you are doing!!!)" Type="Variable" Display="always" Required="false" Mask="false"></Config>
<Config Name="XMS Size" Target="XMS_SIZE" Default="" Mode="" Description="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.)" Type="Variable" Display="always" Required="true" Mask="false">1024</Config>
<Config Name="XMX Size" Target="XMX_SIZE" Default="" Mode="" Description="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.)" Type="Variable" Display="always" Required="true" Mask="false">1024</Config>
<Config Name="TCP - Game Port" Target="25565" Default="" Mode="tcp" Description="Container Port: 25565" Type="Port" Display="always" Required="true" Mask="false">25565</Config>
<Config Name="TCP2 - RCON" Target="25575" Default="" Mode="tcp" Description="Not required if not needed" Type="Port" Display="always" Required="false" Mask="false">25575</Config>
<Config Name="Accept EULA" Target="ACCEPT_EULA" Default="false" Mode="" Description="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)." Type="Variable" Display="always" Required="true" Mask="false">false</Config>
<Config Name="Runtime Name" Target="RUNTIME_NAME" Default="" Mode="" Description="Enter your extracted Runtime folder name.&#13;&#10;Don't change unless you are knowing what you are doing!" Type="Variable" Display="advanced" Required="true" Mask="false">basicjre</Config>
<Config Name="UID" Target="UID" Default="" Mode="" Description="Container Variable: UID" Type="Variable" Display="advanced-hide" Required="true" Mask="false">99</Config>
<Config Name="GID" Target="GID" Default="" Mode="" Description="Container Variable: GID" Type="Variable" Display="advanced-hide" Required="true" Mask="false">100</Config>
<Category>GameServers:</Category>
<Description>This is a Basic Minecraft Server, with the basic configuration it will download and install a Vanilla Minecraft.&#13;
&#13;
You can also install a FTB (FeedTheBeast), Bukkit, Spigot,... server.&#13;
&#13;
Start the container for the first time let it do it's work and shut it down.&#13;
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.&#13;
&#13;
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').
&#13;
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.&#13;
CONSOLE: To connect to the console open up the terminal on the host machine and type in: 'docker exec -u minecraft -ti NAMEOFYOURCONTAINER screen -xS Minecraft' (without quotes) to exit the screen session press CTRL+A and then CTRL+D or simply close the terminal window in the first place.</Description>
<templatePath>/tmp/GitHub/AppFeed/templates/ich777sRepository/ich777/MinecraftBasicServer.xml</templatePath>
</Container>