Skip to content

Self-Hosting Bedrock Dedicated Server ๐Ÿก๐Ÿณ โ€‹

Docker

What is Self-Hosting? ๐Ÿ’ก โ€‹

Self-hosting means running your own Bedrock Dedicated Server (BDS) on your personal computer, home server, or private cloud environmentโ€”rather than relying on third-party hosting services. This gives you full control over your server's configuration, performance, resource packs, and privacy.

Pairing self-hosting with Docker makes the setup even easier and more portable, especially when managing updates or moving across systems.

What is Docker Self-Hosting? ๐Ÿงฑ โ€‹

Using Docker to self-host a Bedrock Dedicated Server (BDS) simplifies deployment and keeps your server environment clean and portable. Docker containers allow you to run the server in an isolated environment with easy updates, resource control, and cross-platform compatibility. Ideal for advanced users who want a modular, reproducible setup.

Setup ๐Ÿ› ๏ธ โ€‹

To host BDS using Docker, follow these steps:

1. Install Docker โ€‹

Make sure Docker is installed on your machine (Linux, macOS, or Windows).

2. Create a Docker Volume or Host Folder โ€‹

Prepare a folder in your current directory to persist server data (e.g., ./bds-data/).

3. Run the BDS Docker Container โ€‹

Use a trusted community image or build your own. Hereโ€™s an example using a public image:

bash
docker run -d \
  --name bedrock-server \
  -v ./bds-data:/data \
  -p 19132:19132/udp \
  -e EULA=TRUE \
  itzg/minecraft-bedrock-server

4. Customize Configuration โ€‹

Edit the server.properties file inside the ./bds-data folder to match your desired setup.

5. Restart the Container โ€‹

After making changes, restart the container to apply them:

sh
docker restart bedrock-server

Example Docker Run Command โ€‹

sh
docker run -d \
  --name bds \
  -v ./bds-data:/data \
  -e EULA=TRUE \
  -e GAMEMODE=creative \
  -e DIFFICULTY=normal \
  -p 19132:19132/udp \
  itzg/minecraft-bedrock-server

Note: Be sure to forward UDP port 19132 if hosting for external players.


Alternative: Using docker-compose ๐Ÿ“ฆ โ€‹

For easier management, you can also run the server using docker-compose:

docker-compose.yml โ€‹

yaml
services:
  bedrock-server:
    image: itzg/minecraft-bedrock-server
    container_name: bedrock-server
    ports:
      - "19132:19132/udp"
    environment:
      EULA: "TRUE"
      GAMEMODE: "creative"
      DIFFICULTY: "normal"
    volumes:
      - ./bds-data:/data
    restart: unless-stopped

How to Use It โ€‹

  1. Save the content above as docker-compose.yml
  2. Start the server:
    bash
    docker-compose up -d
  3. Manage the server:
    bash
    docker-compose down     # Stop
    docker-compose restart  # Restart

Example Directory Layout โ€‹

Once initialized, your data folder (./bds-data/) will look like:

./bds-data/
โ”œโ”€โ”€ server.properties
โ”œโ”€โ”€ whitelist.json
โ”œโ”€โ”€ permissions.json
โ”œโ”€โ”€ worlds/
โ”œโ”€โ”€ resource_packs/
โ””โ”€โ”€ behavior_packs/

All changes made to this directory persist across container restarts.


Ready to Play! ๐ŸŽฎ โ€‹

Start Minecraft Bedrock and connect using your:

  • Local IP (for same-network play)
  • Public IP (with port forwarding for remote access)

Docker makes BDS easy to manage and redeploy. Happy hosting!