User description

My oldest son recently jumped into Minecraft. My son, on the other hand plays Bedrock Edition on an iPad and a game console. He prefers Java Edition on an older computer. He launches it via his terminal! ) To play together, I looked into running an Dockerized Minecraft server on my home server and it was easier than I expected. Running a dedicated server The official server distribution includes only 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 fire up the container using a single docker run command, or daemonize it. But, I've been keeping it simple by using docker compose up in a byobu session. Here's my current docker.yml file There are a variety of configuration options however I would like to highlight two: - Game's persistent data are written to a disk mounted on the host. This allows us to easily access the files. The "WORLD" option lets you import a save made on a different computer. Connecting to the Server The server will accept connections in a few seconds. However my clients aren't able to see it. Minecraft will remain on the "Scanning games on your local network screen" screen for as long as. No matter, you can "Add Server" to add it manually, and voila! Web Map Most of my Minecraft knowledge is more than 10 years old. Third-party tools can provide web-based views of the Minecraft environment, similar to Google Maps. It appears that Minecraft Overviewer is the most popular tool nowadays. While the installation of this tool is straightforward, I found a Docker file that was more simple. This is a single-shot process (not an ongoing service) We'll use docker run: Leaflet will create a web map that has read-only access to game data from the other container, and another volume to write it to. The directory can be linked to a web-served directories on the host like the /var/www directory or /public_html to allow access via any browser. Igralni It takes just a few minutes to run, but the results are pretty impressive: Makefile Finally, as per my wishes, I added a few shortcuts to a Makefile to make it easier to access. The Reasons to Build Dockerized Minecraft Server A dedicated server built by yourself is probably not needed by the majority of players. If you are just wanting to play locally using multiplayer and your computer is powerful enough you can click "Open to LAN" directly from the game. If you're looking to play with a larger group of people outside your home You're better off with a paid hosted server. That could be either the official "Realms" or one of several third-party alternatives.