selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

minecraft logo

Self-host minecraft

2026.11.0

Docker Minecraft Java server with auto modpack installs

ReleaseOpen SourceApache-2.0
docker run -d -it -p 25565:25565 -e EULA=TRUE itzg/minecraft-server
Updated4 days ago
LanguageShell
Setup difficultyEasy
Stars
14 536
Ports
25565 (Minecraft Java Edition server port for game clients), 25575 (RCON remote console port (enabled by default))
Docker
itzg/minecraft-server
minecraft screenshot 1minecraft screenshot 2

What is minecraft?

docker-minecraft-server is a Docker image that runs a Minecraft: Java Edition server and, at startup, downloads and installs the requested version, mod loader or modpack on its own. It defaults to the vanilla server from Mojang but supports many alternative server types (Paper, Fabric, Forge, Bukkit/Spigot, Quilt and others) selected via the TYPE variable, and can fetch individual mods or whole modpacks from CurseForge, Modrinth, Feed the Beast and Spiget with automated download and cleanup. RCON is enabled by default and lets you auto-run commands at startup or on player connect/disconnect; idle servers can be paused or stopped to save resources; whitelist, server icon, resource pack, log format and JVM flags are all environment-variable driven. Server and world files persist under /data inside the container, so mount that path as a volume. Run it with one docker command (EULA=TRUE is mandatory) or the documented compose.yaml; Helm charts, a Kubernetes operator and an Ansible playbook are listed for larger deployments. The image only covers Java Edition natively; for Bedrock compatibility the docs point to the separate itzg/minecraft-bedrock-server image.

minecraft alternatives

Should you self-host minecraft?

minecraft scores 78/100 on selfhost.directory (how scoring works) and ranks #1 of 62 in Game Servers. It has 14 536 GitHub stars, +133 in the last 30 days.

It shipped 23 stable releases in the past year. The latest, 2026.11.0, came out on 9 November 2026. New versions land roughly every 2 weeks.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Shell.

Its closest alternative on selfhost.directory is Luanti (77/100, 13 856 stars). minecraft scores higher overall. See minecraft vs Luanti side by side.

Features

  • Auto-executed server commands
  • Automated mod/plugin download and cleanup
  • Automatic server setup and upgrades
  • Auto-pause when idle
  • Auto-stop when idle
  • Container healthcheck
  • Custom resource pack
  • Custom Server Icon
  • JVM tuning options
  • Modpack platform auto-setup
  • Multiple server types
  • RCON remote console
  • Rolling log files
  • Whitelist Management

minecraft README

How to install minecraft

Install minecraft with Docker

Be sure to always include -e EULA=TRUE in your commands and container definitions, as Mojang/Microsoft requires EULA acceptance.
docker run -d -it -p 25565:25565 -e EULA=TRUE itzg/minecraft-server

Add -v /path/on/host:/data to persist server data.

How to configure minecraft

  • EULAYou MUST set this to true
  • VERSIONLATESTThe minecraft version
  • TYPEVANILLAThe server type
  • MOTDSet the server log in message.
  • DIFFICULTYeasyThe difficulty level. Available values: peaceful,easy,normal,hard

minecraft releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in Game Servers

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…