
This tool generates a ready-to-use docker-compose.yml file for running a Minecraft Java or Bedrock server in Docker. Configure your server type, release version, memory limit, and operator settings without writing YAML by hand.
Loading the tool…
The generator creates configurations for two widely used container images: itzg/minecraft-server for Java Edition and itzg/minecraft-bedrock-server for Bedrock Dedicated Server. When you choose a Java Edition setup, you can select from several server types:
PAPER, PURPUR, and SPIGOT. For Paper and Purpur, you can also enable USE_AIKAR_FLAGS, which applies a widely used set of G1GC JVM flags.FABRIC, QUILT, FORGE, and NEOFORGE.Beyond the server type, you can set the VERSION to LATEST or a specific release. The tool automatically selects the matching java8, java17, or java21 image tag based on the Java version required by your chosen release.
You can also define MEMORY allocation (make sure RAM is enough for your loaded chunks, players, mods, and plugins), MOTD, DIFFICULTY, MAX_PLAYERS, and OPS. Toggles for enabling a whitelist and offline mode are included as well.
Java Edition servers listen on TCP port 25565 by default. If you switch the generator to the Bedrock image, the configuration maps UDP port 19132 instead.
Every Minecraft server requires you to accept the Minecraft End User License Agreement before its first start. Instead of manually editing eula.txt to set eula=true, the generated compose file includes the environment variable EULA: "TRUE", which indicates that you accept the Minecraft EULA.
All world saves, configurations, mods, and plugins are stored persistently on your host machine in the ./data directory. If you want a custom server list icon, place a 64x64 pixel server-icon.png file inside this folder.
Running a containerized server is common on a VPS, a dedicated server with root access, or a home machine. Follow these steps to start your server:
docker-compose.yml inside it.docker compose up -d../data, and run the server in the background.Keep in mind that Minecraft server performance depends mostly on single-thread CPU speed. If you are hosting at home and cannot open ports on your router, you can use a tunnel like playit.gg to let players connect without port forwarding. If you prefer a managed setup over running Docker on a VPS, hosting.9minecraft.net compares shared plans by reading prices, locations, and features directly from each host's website, converting costs to USD per month with ECB exchange rates, and linking Trustpilot scores without taking payment for rankings.
Save the output to a file named docker-compose.yml in an empty directory, open your terminal in that folder, and run docker compose up -d.
All persistent server files, including worlds, plugins, mods, and configuration files like ops.json, are kept in the ./data folder next to your docker-compose.yml file.
The generator automatically picks the java8, java17, or java21 image tag for itzg/minecraft-server based on what the chosen Minecraft release requires.
Setting EULA: "TRUE" means you accept the Minecraft EULA. The container uses this setting to automatically write eula=true into eula.txt before the server starts for the first time.