Project write-up
Game server hosting with AMP
Modded Minecraft servers for me and my friends, run like a small production service: its own VM, a management panel, daily backups and no open ports on my home network.
Goal
My friends and I wanted our own servers for Minecraft modpacks, hosted in my homelab, without exposing my home network to the internet.
Setup
Players
Friends
Connect to a playit.gg address, not my home IP
Tunnel
playit.gg
Agent on the VM connects outbound
Management
CubeCoders AMP
Ubuntu Server VM on NodeWeaver
Servers
Minecraft
Modpack instances, backed up daily
16 GB RAM
6 vCPUs
128 GB storage
What I did, and why
- Gave the game servers their own VM. Modded Minecraft is demanding, so a dedicated Ubuntu Server VM keeps it from competing with my DNS server and other lab services.
- Sized it for modpacks. Modpacks need far more memory than vanilla Minecraft, so I allocated 16 GB of RAM and 6 vCPUs, with 128 GB of storage for worlds, mods and backups.
- Managed everything through AMP. CubeCoders AMP lets me create, update and schedule tasks for server instances from one web panel, instead of maintaining each server by hand.
- Used a playit.gg tunnel instead of port forwarding. The playit.gg agent on the VM makes an outbound connection, so friends can join without any open ports on my router and without seeing my home IP address.
- Scheduled daily backups. AMP backs up the servers every day at 7 AM, so the most we'd lose is a day of progress.
- Kept a copy off the VM. Once a week I copy the latest backup to my main computer, so a failed VM or disk can't take out the servers and their backups together. Once a month I delete the oldest backup to keep storage in check.