Skip to content
Minecraft
Minecraft 100% localFreeOpen access

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.

Documentation
Server

Common values of the itzg image; others exist (see its documentation).

E.g. 4G. Leave headroom for the OS and non-heap (~25%).

Game
Access and administration

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.

Docker
docker-compose.yml
Live preview — automatically saved in your browser.
# 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
Server installation guideNo server yet? Install it locally or on a VPS / dedicated server, ports and firewall included.

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.

  1. Install Docker and the Compose plugin on your server.

  2. Choose the type (PAPER, FABRIC…), the version (LATEST or 1.21.x) and the memory.

  3. Fill in game rules, OPS/WHITELIST and, if needed, RCON with a strong password.

  4. Save docker-compose.yml, then run “docker compose up -d”; follow startup with “docker compose logs -f”.

Read the full documentation →

Frequently asked questions

Screenshot of the server.properties editor toolMinecraftOpen access
Configure your Minecraft Java server: players, world, performance, whitelist and RCON.
ConfigurationJava EditionOpen
Documentation
Minecraft
MinecraftOpen access
Generate start.sh for Paper, Purpur, Fabric or Vanilla: RAM, Aikar's flags, --nogui, automatic restart and GC log.
LaunchPerformanceOpen
Documentation
Minecraft
MinecraftOpen access
Create a colored two-line MOTD with live preview: § codes, hex colors, server.properties line and MiniMessage.
MOTDColorsOpen
Documentation
Minecraft
MinecraftSign-in required
Edit your Bukkit, Spigot and Paper YAML files with help on common keys, default values and indentation error detection.
YAMLConfigurationOpen
Documentation
Minecraft
MinecraftOpen access
Generate whitelist.json and ops.json from a list of usernames, with the offline UUID computed locally, no network or Mojang call.
PlayersAdministrationOpen
Documentation
Minecraft
MinecraftOpen access
Compute radius, chunks, regions, pre-generation time, disk space and loaded chunks for your Minecraft world border.
WorldPerformanceOpen
Documentation