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.

CubeCoders AMPUbuntuNodeWeaverplayit.ggMinecraft

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

16 GB RAM

6 vCPUs

128 GB storage

What I did, and why

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Scheduled daily backups. AMP backs up the servers every day at 7 AM, so the most we'd lose is a day of progress.
  6. 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.
← Back to portfolio