Minecraft Docker Compose Generator

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…

What This Generator Configures

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:

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.

Ports, EULA, and Data Storage

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.

How to Run Your Docker Server

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:

  1. Create a new folder on your server or computer and save the generated output as docker-compose.yml inside it.
  2. Open a terminal in that directory and run docker compose up -d.
  3. Docker will download the image, set up the environment in ./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.

Questions

How do I start the server with the generated file?

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.

Where are my world and server files stored?

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.

Which Java version tag does the tool pick?

The generator automatically picks the java8, java17, or java21 image tag for itzg/minecraft-server based on what the chosen Minecraft release requires.

What does EULA "TRUE" mean in the configuration?

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.

More server tools

See all →