Difference between revisions of "How To Host A DIY Minecraft Server At Home With Docker"

From Trade Britannica
Jump to: navigation, search
(Created page with "<p> My oldest child was introduced to Minecraft recently. My son, on the other hand is playing Bedrock Edition on an iPad and a game console. [https://www79.zippyshare.com/v/G...")
 
m
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<p> My oldest child was introduced to Minecraft recently. My son, on the other hand is playing Bedrock Edition on an iPad and a game console. [https://www79.zippyshare.com/v/GpM8RqBY/file.html System32] He prefers Java Edition on an older computer. (And it's launched from the terminal! ) To play together, I looked into running an Dockerized Minecraft server on my home server, and it was much simpler than I had expected.</p><br /><br /><p> Running a dedicated server</p><br /><br /><p> The official server distribution is one Java jar, which means it ought to be pretty simple to run. Before trying it, though, I searched for Docker images, and found a good one: itzg/minecraft-server.</p><br /><br /><p> You can fire up the container with an individual docker run command and/or daemonize it. However, I've kept it simple with docker compose-up in byobu sessions.</p><br /><br /><p> Here's my current docker.yml file</p><br /><br /><p> There are a variety of configuration options available however I'd like to focus on two:</p><br /><br /><p> The game's persistent data is written to a volume mounted to the host to allow us to easily access the files. The "WORLD" option is really useful for importing an existing save created on a different computer.</p><br /><br /><p> Connecting to the Server</p><br /><br /><p> The server will accept connections within a couple of seconds. However, my clients aren't able to see it. Minecraft will remain on the "Scanning games on your local network" screen for the rest of time. You can "Add Server" to manually add it, and voila!</p><br /><br /><p> Web Map</p><br /><br /><p> My Minecraft knowledge is more than a decade old. However, I'm aware that third-party tools can generate a web view of a Minecraft world, similar to the one in Google Maps. It seems that Minecraft Overviewer is the most popular tool nowadays.</p><br /><br /><p> As before, this tool's installation looks pretty straightforward but I discovered a Docker image that's a lot easier. This is a one-shot (not an ongoing) procedure, so we'll use docker to run:</p><br /><br /><p> If you have read-only access to the game data created by the other container and another volume to write to, this will result in an online map using Leaflet. The directory can be linked to a web-served directories on the host such as the /var/www directory or /public_html to allow access from any web browser.</p><br /><br /><p> It takes only a few minutes to complete, but the results are pretty spectacular:</p><br /><br /><p> Makefile</p><br /><br /><p> Finally, as per my will, I added a few shortcuts to the Makefile for quick access.</p><br /><br /><p> The Reasons to Build a Dockerized Minecraft Server</p><br /><br /><p> The majority of people don't require an individual server. If you are just wanting to play locally using multiplayer and your computer is sufficiently powerful, you can simply "Open to LAN" directly from the game. A paid hosted server is best if you would like to play with a larger number of players outside of your home. This could be the official "Realms", or one of a variety of third-party options.</p>
+
<p> My oldest son recently jumped into Minecraft. While a lot of his friends play Bedrock Edition on an iPad or game console, my son plays the old-fashioned Java Edition on an old computer. (And he launches it from the terminal! ) To play with each other I thought about running a Dockerized Minecraft server on my home server and it was simpler than I had expected.</p><br /><br /><p> A dedicated server is running</p><br /><br /><p> The official server distribution includes a single Javajar. [https://userscloud.com/my3u7u80szhe best minecraft servers] It should be simple to use. Before trying it, though, I searched for Docker images, and found a good one: itzg/minecraft-server.</p><br /><br /><p> You can either open the container using a docker run command or daemonize it. I prefer to keep it simple and set docker compose within my byobu session.</p><br /><br /><p> Here's my current docker.yml file.</p><br /><br /><p> There are a variety of configuration options however I'd like to focus on two:</p><br /><br /><p> - Game's persistent data are written to a volume that is mounted on the host. This lets us quickly access the files. The "WORLD" option allows you to import a save that was created on a different computer.</p><br /><br /><p> Connecting to the Server</p><br /><br /><p> The server will accept connections within a couple of seconds. However my clients aren't in a position to see it. Minecraft will remain on the "Scanning games on your local network" screen for as long as. Whatever the case you want to do, simply click "Add Server" to add it manually, and voila!</p><br /><br /><p> Web Map</p><br /><br /><p> Most of my Minecraft knowledge is 10 years old. However, I'm aware of third-party tools can produce an online representation of a Minecraft world, similar to the one in Google Maps. After searching around, it seems like Minecraft Overviewer is the prominent one in the present.</p><br /><br /><p> Although the installation process is easy, I discovered an Docker file that was simpler. This one's a one-shot process (not an ongoing service) We'll make use of docker run:</p><br /><br /><p> Leaflet will create a web map with read-only access to game data from the other container and another volume to write it to. This directory can be symlinked to a web-served directory on the host, such as the /var/www/public_html directory, which allows easy access from any web browser.</p><br /><br /><p> Even though it only takes just a few minutes to complete but the results are impressive.</p><br /><br /><p> Makefile</p><br /><br /><p> Lastly, as is my custom I added a few shortcuts in the Makefile to make them easy to access:</p><br /><br /><p> Reasons You Might Want to build a Dockerized Minecraft Server</p><br /><br /><p> The majority of people don't require dedicated servers. If you're just looking to play local multiplayer and one of your computers is sufficiently powerful you can click "Open to the LAN" directly from the game. If you're looking to play with a large group of players outside of your household it's best to go with a paid hosted server. It could be the official "Realms" or one of the many third-party alternatives.</p>

Latest revision as of 11:24, 19 July 2022

My oldest son recently jumped into Minecraft. While a lot of his friends play Bedrock Edition on an iPad or game console, my son plays the old-fashioned Java Edition on an old computer. (And he launches it from the terminal! ) To play with each other I thought about running a Dockerized Minecraft server on my home server and it was simpler than I had expected.



A dedicated server is running



The official server distribution includes a single Javajar. best minecraft servers It should be simple to use. Before trying it, though, I searched for Docker images, and found a good one: itzg/minecraft-server.



You can either open the container using a docker run command or daemonize it. I prefer to keep it simple and set docker compose within my byobu session.



Here's my current docker.yml file.



There are a variety of configuration options however I'd like to focus on two:



- Game's persistent data are written to a volume that is mounted on the host. This lets us quickly access the files. The "WORLD" option allows you to import a save that was created on a different computer.



Connecting to the Server



The server will accept connections within a couple of seconds. However my clients aren't in a position to see it. Minecraft will remain on the "Scanning games on your local network" screen for as long as. Whatever the case you want to do, simply click "Add Server" to add it manually, and voila!



Web Map



Most of my Minecraft knowledge is 10 years old. However, I'm aware of third-party tools can produce an online representation of a Minecraft world, similar to the one in Google Maps. After searching around, it seems like Minecraft Overviewer is the prominent one in the present.



Although the installation process is easy, I discovered an Docker file that was simpler. This one's a one-shot process (not an ongoing service) We'll make use of docker run:



Leaflet will create a web map with read-only access to game data from the other container and another volume to write it to. This directory can be symlinked to a web-served directory on the host, such as the /var/www/public_html directory, which allows easy access from any web browser.



Even though it only takes just a few minutes to complete but the results are impressive.



Makefile



Lastly, as is my custom I added a few shortcuts in the Makefile to make them easy to access:



Reasons You Might Want to build a Dockerized Minecraft Server



The majority of people don't require dedicated servers. If you're just looking to play local multiplayer and one of your computers is sufficiently powerful you can click "Open to the LAN" directly from the game. If you're looking to play with a large group of players outside of your household it's best to go with a paid hosted server. It could be the official "Realms" or one of the many third-party alternatives.