
Minecraft docker-compose generator (itzg)
Generate a docker-compose.yml for the itzg/minecraft-server image: server type, version, memory, players, RCON, ops and whitelist.
Last updated: 10/9/2026
100% local processing — saved in your browser.
Common values of the itzg image; others exist (see its documentation).
E.g. 4G. Leave headroom for the OS and non-heap (~25%).
Keep on unless behind a proxy or testing locally.
Comma-separated names or UUIDs.
If filled, ENABLE_WHITELIST=TRUE is added.
Example password: change it.
# Generated by games-tools.game-rank.com
services:
mc:
image: itzg/minecraft-server:latest
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
TYPE: "PAPER"
VERSION: "LATEST"
MEMORY: "4G"
TZ: "Europe/Paris"
MOTD: "A Minecraft Server"
DIFFICULTY: "easy"
MODE: "survival"
MAX_PLAYERS: "20"
VIEW_DISTANCE: "10"
ONLINE_MODE: "TRUE"
volumes:
- "./data":/data
restart: unless-stopped
How to use Minecraft docker-compose generator (itzg)?
The itzg/minecraft-server image (community-made, not official from Mojang) downloads and runs a Minecraft Java server from environment variables. This tool builds the docker-compose.yml: EULA acceptance, type and version, memory, game rules, access and RCON, with data persisted in ./data.
Install Docker and the Compose plugin on your server.
Choose the type (PAPER, FABRIC…), the version (LATEST or 1.21.x) and the memory.
Fill in game rules, OPS/WHITELIST and, if needed, RCON with a strong password.
Save docker-compose.yml, then run “docker compose up -d”; follow startup with “docker compose logs -f”.
Frequently asked questions
More Minecraft tools
MinecraftOpen access



