Skip to content

ppk205/minecraft_server_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Minecraft Server Template

Welcome to the advanced self-deployable Minecraft Server Template. This template solves the pain points of scaling and managing a containerized server by providing an out-of-the-box management dashboard (built using React and Node.js), robust configuration syncing, tunneling capabilities, and automated CurseForge-to-Modrinth fallbacks.

Features

  • 🖥️ Sleek Web Interface: Manage start/stop/restart logic directly from a sleek dark-mode glassmorphism dashboard.
  • 💾 File Manager & Editor: Browse your /data server volume and edit text files directly without needing SFTP. Changes are automatically applied via container restart.
  • 🚀 Software Switcher: Swap between Vanilla, Paper, Fabric, Forge or custom CurseForge modpacks with automatic backup prompts before wiping old files.
  • 🔄 CF to Modrinth Engine: Bypasses Curseforge API blocks by fetching missing mods from the Modrinth API automatically into the server's mods/ directory.
  • 🌐 Integrated Tunnels: Bind Playit.gg, Cloudflared, Ngrok, or Tailscale keys easily to host the server globally without port-forwarding.
  • ☸️ DevOps Ready: K8s resources provided for StateFulSets deployment to Google Cloud/AWS out of the box.

Getting Started (For Beginners)

  1. Clone the repo.
  2. Set up your .env configuration. You must define WEBUI_ADMIN_USER and WEBUI_ADMIN_PASS inside .env. A .env.example has been provided for you. Simply copy it:
cp .env.example .env
  1. Bring up the stack via Docker Compose:
docker compose up -d
  1. Find the web control panel at http://localhost:3001. Login with your defined administrator credentials (admin / Hehehe@123 by default).

Crash Solution & Debugging

If your server crashes continuously and you are locked out of the Game Server Console:

  • Log in to the WebUI.
  • View the "Live Console" to find the error stack trace.
  • Go to File Explorer, navigate to crash-reports/ and read the latest crash.
  • Usually, out-of-memory crashes can be resolved by increasing the Max RAM Allocation inside the Settings panel and clicking Save. Conflicting mods should be removed using the File Explorer.

Modrinth Fallback Downloader

In the Settings tab, type the namespace of any Curseforge mod that blocked external downloads (e.g. sodium, lithium). The engine will query and download the Modrinth equivalent directly into your mods/ directory.

Kubernetes Demo

To deploy this setup using K8s instead of Docker Compose (for orchestrating multiple game instances or running on the Cloud):

kubectl apply -f ./k8s/minecraft-stack.yaml

About

docker compose and stuff to build and run a minecraft server

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors