Welcome, visitor! [ Register | Login

About camelpigeon61


How To Host A DIY Minecraft Server At Home With Docker

My oldest son discovered Minecraft recently. While a lot of his friends play Bedrock Edition on an iPad or game console, my son plays the venerable Java Edition on an old computer. (And he can launch it via the terminal! ) To play together I decided to run an Dockerized Minecraft server on my home server, and it was much easier than I expected.

A dedicated server is running

The official server distribution comes with one Javajar. It should be easy 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 with a docker run command or daemonize it. I prefer to keep it simple and run docker compose in my byobu session.

Here's my current docker.yml file.

There are many configuration options available However, I would like to highlight two:

Game's persistent files are written to a disk mounted on the host. This allows us to easily access the files. - The "WORLD" option is handy for importing the save file that was originally created on another computer.

Connecting to the Server

After a couple of seconds, the server is now ready to accept connections, but my clients can't be able to see it due to reasons. Minecraft will remain on the "Scanning games on your local network screen" 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 more than a decade old. Third-party tools can create an online view of a Minecraft environment that is similar to Google Maps. It appears that Minecraft Overviewer is the most popular tool these days.

While the installation process is simple, I came across an Docker file that was even simpler. This is a single-shot process (not a persistent service) So 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. The directory can be connected to a web-served directory on the host, such as /var/www or ~/public_html for access to any web browser.

It takes a few minutes to run and the results are pretty spectacular:


In the end, in line with my wishes, I added a few shortcuts to a Makefile to make it easier to access.

The Reasons to Build Dockerized Minecraft Server

Most people don't require a dedicated server. MINECRAFT MULTIPLAYER If you are just looking to play locally with multiplayer and your computer is sufficiently powerful, you can simply "Open to the LAN" directly from the game. If you're planning to play with a larger number of players outside of your household, you're probably better off with a paid hosted server. This could be the official "Realms", or one of the many third-party alternatives.

Sorry, no listings were found.