Skip to content

Minecraft (Bedrock / Console Edition) Server in Docker on a Synology NAS

UpdateDate
New guide released23/02/2022
DSM7.1 Update with new screenshots and steps27/05/2022
Added some other useful variables to get the basics setup on a server23/06/2022

In this guide I am going to take you through the steps to get a Minecraft Bedrock server up and running in Docker on a Synology NAS.

What is the Bedrock Edition?

The Bedrock edition is the version used by all consoles such as the Nintendo Switch, Android, iPhone, and the Windows store edition. If you are looking for a JAVA edition see my other guide.

In order for you to successfully use this guide please complete the second of the two preceding guides.

Setting up a restricted Docker user

Downloading the Container

Open up Docker within DSM and navigate to the ‘Registry’ tab and search for ITZG in the keyword box.

Within the results right click and download the ‘ITZG|Minecraft-Bedrock-Server’, When it asks which version number to download select ‘Latest’

Setting up the container

Now we have downloaded the container and got hold of our user IDs we can move onto the next stage.

Go back into Docker and click on the ‘Image’ tab, in the list of your containers select the ITZG minecraft bedrock server, and click on ‘Launch’

You will be greeted with the Network screen, we will be using the bridge network, this allows us to specify the ports we want to use.

Next you will be greeted with the General Settings screen, this is where you can start specifying some of your preferences.

You can change the name of the container to anything you like, and you may want to enable Auto Restart as this will ensure the server starts automatically if you reboot your NAS.

We won’t be change any of the other settings.

Next up we are going to click on the ‘Advanced Settings’ button, this will take you to a new window with a number of tabs which we are going to work through.

Environment

We are now going to set up the specific options for the server some of these will be set based on your preference.

Add each of the values below by clicking the ‘Add’ button at the top of the screen and then entering each of the values below.

These are the minimum settings I would use, you can see a full list on ITZG’s GitHub including how to give permissions to your users. Take note that some items are UPPERCASE and some are lowercase. This is how they should be set.

VariableValueComment/options
UIDYOURUIDUID you obtained earlier
GIDYOURGIDGID you obtained earlier
EULAtrueThis accepts the Minecraft EULA, without this the server will not run
VERSIONlatestThis keeps the server updated to the latest release.
You can also change this to a specific version such as 1.18.10 which is useful if Microsoft updates the server version before releasing new clients!
PACKAGE_BACKUP_KEEP2This specifies the amount of backup versions to keep
SERVER_NAMEDrFrankenstein BedrockGive your server a name
SERVER_PORT19132
GAMEMODEcreative, survival, adventure
DIFFICULTYpeaceful, easy, normal, hard
ONLINE_MODEtrue or false (true will require you to be signed in to Xbox Live when playing)
opsyourxuidIn order to get your xuid you will need to visit this site enter your gamertag and select decimal in the options
WHITE_LIST_USERSplayer1,player2,player3The player names will be the xbox gamertags.
cheatstrue or false

You do not need to set up anything on these tabs.

Press ‘Save’ to go back to the initial setup screen, then press ‘Next’

Port Settings

On this screen enter 19132 in the left-hand side of the page in the Local Port section and then click Next

Volume Settings

We can now specify the directory where Minecraft will store its configuration files.

Click on Add Folder, click on the docker folder and create a new sub-folder called ‘minecraftbedrock’ select this folder and click ‘select’

Now we need to specify where this folder will be mounted inside the container. As per the screenshot/table below, enter /data into the ‘Mount path’.

File/FolderMount path
docker/minecraftbedrock/data

Click on Next and you will be taken to an overall summary screen, just do a quick sanity check to make sure they are correct. If you want to launch the server immediately check the box and click on Done.

Server startup time

The first time the server launches it may take a few minutes for the server files to download and the world to be generated.

There are two ways to connect to the server, either via the Friends tab or by adding it manually to the Servers tab in Minecraft.

You are now all setup and ready to play…



Docker Compose

You can use the below code saved as bedrock.yml in ‘/docker/minecraftbedrock’ which you will need to create, this will do the entire process above in one quick command via SSH.

See the Environment section above for the appropriate settings

version: "3.2"
services:
  minecraft-bedrock-server:
    image: itzg/minecraft-bedrock-server:latest
    container_name: minecraftbedrock
    environment:
      - UID=YOURUID
      - GID=YOURGID
      - VERSION=LATEST
      - DIFFICULTY=normal
      - GAMDEMODE=survival
      - SERVER_PORT=19132
      - ONLINE_MODE=true
      - SERVER_NAME=NAMEYOURSERVER
      - EULA=TRUE
    volumes:
      - /volume1/docker/bedrock:/data
    ports:
      - 19132:19132/udp
    restart: unless-stopped
sudo docker-compose -f /volume1/docker/minecraftbedrock/bedrock.yml up -d


Throw me some bits or buy me a coffee?

If you have found my site useful please consider pinging me a tip as it helps cover the cost of running the site, you can even buy me a coffee 🙂

Buy Me A Coffee
Doge / Ethereum / Bitcoin
Published inGaming

25 Comments

  1. Chong Chong

    Hi. Dr.

    I have just finish setting up the server and it works like charm. I have downloaded a few add on and are trying to include them to the game but couldnt find any success despite following the guide from a few youtube video. do you happen to have written a guide on the subject matter?

  2. wouterbos73@gmail.com wouterbos73@gmail.com

    Thank you for this tutorial. I have 1 server running.

    I do have two questions:
    1) I created a world in “creative”. Can I change it later on? (I tried the environmal setting but that doesn’t seem to have any effect?)

    2) I created a second server through copying and then changed IP and name and mode. It is running as well… But it has copied the entire world and is also in creative… What am I doing wrong?

    • Dr_Frankenstein Dr_Frankenstein

      Hey, as well as changing the Environment variable, you will also need to edit the Server.Properties file (in the /docker/bedrock folder) as it will likely still be set to Creative mode – You will find this only affects new players, so you will remain in Creative Mode – You can give yourself OP permissions by going into the Container UI and in the Terminal tab – create a new session at the top on the menu and then in the terminal type ‘op’ then your player name.

      When you are op you can change yourself to a different game mode in the game by using /gamemode survival

      • wouterbos73@gmail.com wouterbos73@gmail.com

        Thanks

  3. Chris Chris

    Does anyone know how you can connect a Nintendo Switch to this server?

    • It should work fine… as long as both your Switch and your Server are the same version.

  4. Alex D Alex D

    Thanks for the guide! I’m having trouble keeping the docker instance running. It keeps shutting down after a minute. Permissions seem to be ok. Firewall port is open for 19132. Logfile says it resolved GID and UID, then “looking up latest version…” then shuts down. Any idea of what I can try?

    • Dr_Frankenstein Dr_Frankenstein

      I think something is up with fetching the latest version of the Minecraft Server as Eric above also had the same issue – I think this may be a temporary issue so set the version to 1.17 for the moment.

      • Using 1.17 works for me… 1.18 or “latest” and I get that 404 error. I’ll just use 1.17 for now and try again periodically. 😉

  5. Hi. First off… great guides. I’ve had success with the Java edition MC server (needs some performance tuning, but it works).

    Trying to setup Bedrock, and every time, it says “checkdir error: cannot create XYZ
    Permission denied”

    I’m using the same user as I did for MC Java (and for 2 other dockers) so I know the permissions are OK. Am I missing something? Any thoughts?

    Thanks!

    • Dr_Frankenstein Dr_Frankenstein

      Hey Eric, sorry for the late reply! Are you still getting a permissions error? Can you go into Fillestation and change the folder owner of the Minecraft folder you created to your Docker user. Then try running it again.

      • Thanks for the reply.

        I reviewed all the permissions, and found out that the userid was incorrect (for both Bedrock and Java servers). Oddly enough, the Java edition ran anyhow. I’ve fixed that… and now I get a 404 error downloading Bedrock 1.18 (but I can run 1.17 or older no issues.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

drfrankenstein.co.uk – writing Synology Docker Guides since 2016 – Join My Discord!