Self-Hosting Bedrock Dedicated Server ๐ก๐ณ โ

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:
docker run -d \
--name bedrock-server \
-v ./bds-data:/data \
-p 19132:19132/udp \
-e EULA=TRUE \
itzg/minecraft-bedrock-server4. 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:
docker restart bedrock-serverExample Docker Run Command โ
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-serverNote: 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 โ
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-stoppedHow to Use It โ
- Save the content above as
docker-compose.yml - Start the server:bash
docker-compose up -d - 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!