centarch4

<p><br/> My oldest child recently delved into Minecraft. While many of his peers play Bedrock Edition on an iPad or game console, my son is playing the venerable Java Edition on an old computer. (And he launches it from the terminal! ) To play together I decided to run a Dockerized Minecraft server on my home server, and it was much simpler than I had expected.<br/></p><br/><p><br/> Running a dedicated server<br/></p><br/><p><br/> The official server distribution is only a single Java jar, so it should be fairly easy to run. Before trying it, though, I searched for Docker images, and found a good one: itzg/minecraft-server.<br/></p><br/><p><br/> You can either open the container by using a docker run command or daemonize it. But, I've been keeping it simple by setting docker compose-up in a byobu session.<br/> <a href="http://y8space.com/members-2/yellowblow8/activity/3367217/">Minecraft blog</a> </p><br/><p><br/> Here's my current docker.yml file<br/></p><br/><p><br/> There are many configuration options to choose from, but I'd like to mention two:<br/></p><br/><p><br/> The game's persistent data is stored on a volume that is mounted to the host, so that we can access the files. The "WORLD" option lets you import a save that was created on another computer.<br/></p><br/><p><br/> Connecting to the Server<br/></p><br/><p><br/> After a few seconds, the server is now ready to accept connections, however my clients can't be able to see it due to reasons. Minecraft will be on the "Scanning for games on your local network" screen for a long time. You can "Add Server" to manually add it, and voila!<br/></p><br/><p><br/> Web Map<br/></p><br/><p><br/> Most of my Minecraft knowledge is more than 10 years old. However, I'm aware that third-party tools can create a web view of a Minecraft world similar to those in Google Maps. After searching around, it seems like Minecraft Overviewer is the prominent one these days.<br/></p><br/><p><br/> While the installation of this tool is straightforward, I found an Docker file that was even more simple. This one's a one-shot process (not a persistent service), so we'll use docker run:<br/></p><br/><p><br/> 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 then be symlinked into a web-served directory on the host, such as the /var/www directory or /public_html to allow access via any browser.<br/></p><br/><p><br/> It takes only a few minutes to complete and the results are pretty impressive:<br/></p><br/><p><br/> Makefile<br/></p><br/><p><br/> In the end, in line with my will I added a few shortcuts to the Makefile for quick access.<br/></p><br/><p><br/> The Reasons to Build Dockerized Minecraft Server<br/></p><br/><p><br/> The majority of people don't require dedicated servers. If you're looking to play locally and one of your machines is fairly powerful, you can click "Open to LAN" from inside the game. If you're looking to play with a larger group of folks outside your household, you're probably better off with a paid-for hosted server. This could be the official "Realms" or one of a variety of third-party alternatives.<br/></p>

centarch4 is not following anyone.
Loading...