Registered: 2 months, 2 weeks ago
How To Host A DIY Minecraft Server At Home Using Docker 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 classic Java Edition on an old computer. He launches it from his terminal! ) To play with each other I thought about running an Dockerized Minecraft server on my home server, and it was much simpler than I had expected. Running a Dedicated Server The official server distribution comes with a single 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 using the docker run command, or daemonize it. But, I've been keeping it simple by setting docker compose in byobu sessions. Here's my current docker.yml file. There are many available configuration options, but I'd like to emphasize two points above: Game's persistent files are written to a volume that is mounted on the host. This lets us quickly access the files. The "WORLD" option lets you import a save that was made on a different computer. Connecting to the Server After a few seconds, the server is now ready to accept connections, however my clients aren't able to recognize it for reasons. Minecraft will remain on the "Scanning games on your local network" screen for the rest of time. You can still "Add Server" to manually add it, and voila! Web Map My Minecraft knowledge is a decade old. But, I'm aware that third-party tools can generate an online representation of a Minecraft world that is similar to the ones in Google Maps. It seems that Minecraft Overviewer is the most well-known tool in the market today. While the installation of this tool is simple, I came across an Docker file that was even simpler. Minecraft This is a one-shot (not a persistent) process so we'll use docker ran: If you have read-only access to the game data generated by the other container and another volume to write to, this will result in a web map with Leaflet. The directory can then be connected to a web-served directory on the host, such as the /var/www directory or /public_html to allow access via any browser. While it only takes just a few minutes however, the results are impressive. Minecraft online Makefile Finally, as is my wont, I threw some shortcuts into the Makefile to make them easy to access: Reasons You Might Want to Build Dockerized Minecraft Server A DIY dedicated server is probably unnecessary for most people. If you're looking to play multiplayer locally and one of your computers is fairly powerful, you can just "Open to LAN" from inside the game. Minecraft online A paid hosted server is best if you wish to play with a greater number of players outside of your home. That could be either the official "Realms" or one of the many third-party options.
Topics Started: 0
Replies Created: 0
Forum Role: Participant