Self-host Minecraft Server with Levelrail

A Minecraft Java server (vanilla, Paper, Fabric or Forge via the server type field) that downloads the selected version on first boot (default 1.21.11, tested on the Java 21 image). You must accept the Minecraft EULA yourself by entering TRUE; it is never accepted for you. Players connect to TCP 25565 (no web address is created for it): the port binds privately by default, so set a public bind in the app's Network settings and open TCP 25565 in the host and cloud firewall. RCON is on with a generated password but its port is not published; run apps console from the CLI. The JVM heap is the memory field and the container limit defaults to 2560M, 25 percent above the 2G heap. Defaults suit 2 CPUs and 12 GB of RAM shared with other apps. Image is multi-arch (amd64 and arm64).

  • Memory2.5 GiB
  • Archarm64
  • Services1

Needs setup: set EULA before the first start.

How to self-host Minecraft Server

  1. Pull the images

    One image is pulled on your server.

    Show images
    • itzg/minecraft-server:2026.10.1-java21
  2. Create the app

    One service starts in a single Compose app, with 1 named volume mount for your data, on port 25565.

  3. Fill in the secrets

    1 secret is generated and stored encrypted, 13 settings are preset, you provide 1 value.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Minecraft Server requirements

Memory
About 2.5 GiB
Architectures
amd64 image published, arm64 image published
Ports
25565
Domain
Optional, an sslip.io address is used without one
Settings
1 to fill in
License
not yet recorded
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 25565 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Minecraft Server. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Minecraft Server docs page.

Deploy Minecraft Server your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Minecraft Server from the CLI

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain minecraft=app.example.com.

levelrail-cli templates install minecraft --name my-minecraft --env EULA=VALUE

Deploy Minecraft Server with the API

Create a token in the dashboard first. Name, env and domains are the request fields.

curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/minecraft/install \
  -d '{
    "name": "my-minecraft",
    "env": { "EULA": "VALUE" }
  }'

Minecraft Server configuration

Minecraft Server services

ServiceImagePortsVolumes
minecraft itzg/minecraft-server:2026.10.1-java21 25565 minecraft_data -> /data

Minecraft Server environment variables

VariableServiceValue
DIFFICULTY minecraft Preset by the template
ENABLE_RCON minecraft Preset by the template
ENABLE_WHITELIST minecraft Preset by the template
ENFORCE_WHITELIST minecraft Preset by the template
EULA minecraft You must set this
MAX_PLAYERS minecraft Preset by the template
MEMORY minecraft Preset by the template
OPS minecraft Preset by the template
Show all 15 variables
  • RCON_PASSWORDminecraftGenerated at deploy
  • SIMULATION_DISTANCEminecraftPreset by the template
  • TYPEminecraftPreset by the template
  • USE_AIKAR_FLAGSminecraftPreset by the template
  • VERSIONminecraftPreset by the template
  • VIEW_DISTANCEminecraftPreset by the template
  • WHITELISTminecraftPreset by the template

Ports and volumes

Ports
25565
Volumes
1 named mount: minecraft_data -> /data

Minecraft Server FAQ

How much memory does Minecraft Server need?

The catalog lists about 2.5 GiB of memory for Minecraft Server.

Does Minecraft Server run on arm64?

For Minecraft Server, an arm64 image is published; amd64 is image published.

Does Minecraft Server need configuration before it starts?

Yes. Minecraft Server has required settings: EULA.

Which ports does Minecraft Server use?

Minecraft Server listens on port 25565 inside the stack.

Where does Minecraft Server keep its data?

In a named volume: minecraft_data mounted at /data.

Can I deploy Minecraft Server on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Minecraft Server, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image itzg/minecraft-server:2026.10.1-java21 is what you deploy there.

levelrail-cli templates install minecraft --name my-minecraft --env EULA=VALUE