> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-host Minecraft Bedrock Server with Docker

> A Minecraft Bedrock Edition dedicated server for phones, consoles and Windows players. You must accept the Minecraft EULA yourself by entering TRUE. Players connect on UDP 19132: the port binds privately by default, so set a public bind in the app's Network settings and open UDP 19132 in the host and cloud firewall. The image publishes amd64 and arm64 builds, but the Bedrock server itself is x86 software, so on arm64 it runs under emulation and needs more CPU.

A Minecraft Bedrock Edition dedicated server for phones, consoles and Windows players. You must accept the Minecraft EULA yourself by entering TRUE. Players connect on UDP 19132: the port binds privately by default, so set a public bind in the app's Network settings and open UDP 19132 in the host and cloud firewall. The image publishes amd64 and arm64 builds, but the Bedrock server itself is x86 software, so on arm64 it runs under emulation and needs more CPU.

This page describes the Levelrail template for Minecraft Bedrock Server (Games). It deploys the services below as one Docker Compose app on your own server. Project site: [https://github.com/itzg/docker-minecraft-bedrock-server](https://github.com/itzg/docker-minecraft-bedrock-server).

Recommended memory: about 2048 MiB.

## Services, ports and volumes

| Service | Image | Container ports | Volumes |
| - | - | - | - |
| `bedrock` | `itzg/minecraft-bedrock-server:2026.10.3` | 19132 | `bedrock_data -&#62; /data` |

## Environment variables

| Service | Variable | Value |
| - | - | - |
| `bedrock` | `ALLOW_LIST` | Preset in the template |
| `bedrock` | `DIFFICULTY` | Preset in the template |
| `bedrock` | `EULA` | You must provide |
| `bedrock` | `GAME_MODE` | Preset in the template |
| `bedrock` | `VERSION` | Preset in the template |

Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.

## Security and requirements

Level: **Standard**.

What this template needs:

* Publishes ports directly on the host (`bedrock`): 19132:19132.
* You must provide one or more secrets before it can deploy (`bedrock`): EULA.
* Stores data in named volumes (`bedrock`): bedrock\_data.

What Levelrail adds around it:

* Automatic HTTPS and an ingress shield in front of every domain.
* Secrets are generated, stored encrypted and masked in logs and the UI.
* Named volumes can be backed up and restored.
* Deploys are gated on the health check before traffic switches.
* One-step rollback to the previous revision.
* Exposure report shows what is reachable from outside.
* Host firewall rules managed for published ports.

> [!WARNING]
>
> This template needs configuration before it can deploy. Open it in the dashboard, set each variable marked "You must provide" in the Compose body, then deploy.

## Deploy Minecraft Bedrock Server with Levelrail

In the dashboard, open **Apps**, choose **New app**, then **Browse templates**, and select Minecraft Bedrock Server. Review the Compose body and deploy.

With the CLI:

```bash theme={"dark"}
levelrail-cli templates get minecraft-bedrock --output json | jq -r .compose > minecraft-bedrock.compose.yaml
# edit minecraft-bedrock.compose.yaml to set the variables you must provide
levelrail-cli apps deploy-compose my-minecraft-bedrock --file minecraft-bedrock.compose.yaml
```

See the [service template catalog](https://docs.levelrail.com/templates-and-registry.md) for how templates work, and [Getting started](https://docs.levelrail.com/getting-started.md) if you have not installed Levelrail yet.

## More Games templates

* [Factorio Server](https://docs.levelrail.com/self-host/factorio.md)
* [Minecraft Server](https://docs.levelrail.com/self-host/minecraft.md)
* [Palworld Server](https://docs.levelrail.com/self-host/palworld.md)
* [Terraria Server](https://docs.levelrail.com/self-host/terraria.md)

All templates are listed in the [self-host gallery](https://docs.levelrail.com/self-host.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.