Hosting a Minecraft Server on Synology DSM: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
Line 59: Line 59:
=== Copying data files from the Docker container ===
=== Copying data files from the Docker container ===


[TK]
See [[Docker Cookbook]] for commands to log into the Docker container and copy files from the Docker Container.


=== Storing data files outside of the Docker container ===
=== Storing data files outside of the Docker container ===

Revision as of 14:34, 17 May 2021

Overview

Instructions for hosting a Minecraft server on Synology DSM.

Installation

The Minecraft servers implemented with Docker containers.

The image used to create the container is itzg/minecraft-server. [1] [2] [3]

Viewing server status

  • Synology DSM > Package Center > Docker > Open
  • Container tab

Containers named minecraft-server serve for Minecraft Java Edition, i.e. desktop, laptop.

Containers named minecraft-bedrock-server serve mobile editions of Minecraft, i.e. iPad.

Nintendo Switch consoles can't connect to either of these servers, I think.

Click on a server, then click Action > Details at the top to view the server details, e.g. the port on which the server is running.

Connecting to server

iOS

  • Open Minecraft and make sure to log in to your Microsoft/Minecraft profile.
  • Click Play
  • Servers tab
    • Scroll down to Additional Servers.
    • If the server is not listed, click Add Server.
      • Server Name: [Name to display in the future under "Additional Servers"]
      • Server Address: [IP of Synology DSM]
      • Port: [Can be found under Docker container details]

Upgrading server version

View the server container in Synology DMS. Stop the server with the icon in the rightmost column, then start the server again. It will upgrade automatically.

Editing server properties

DSM

  • DSM > Package Center > Docker > Open
  • Image > [Select minecraft server image] > Launch button
  • Advanced Settings button
  • Environment tab
    • Add or edit server properties here, e.g. SERVER_PORT, WHITELIST, DIFFICULTY

docker-compose

[TK]

Data files

By default the data files for the minecraft world are stored in the Docker container.

Copying data files from the Docker container

See Docker Cookbook for commands to log into the Docker container and copy files from the Docker Container.

Storing data files outside of the Docker container

[TK]

External access

External access is controlled by the wifi router.

Router admin > Advanced tab > Forwarding > Virtual Servers > Add New...

  • Service Port: [Public port for server]
  • Internal Port: [Minecraft Docker container port (leave blank to mirror public port)]
  • IP Address: [LAN IP address of Synology DSM]
  • Protocol: All
  • Status: Enabled

When connecting use the public URL of the Synology DSM, e.g. dbarchowsky.synology.me and the public port defined in the router.

Notes

See also

References