Skip to content

OwenTruong/bedrock-server

Repository files navigation

bedrock-server

Description

A Docker app with two services: one service for setting server.properties and starting the bedrock_server, and another service for creating periodic backups.

By using this software, you agree with the Minecraft End User License Agreement and Privacy Policy.

"bedrock-server" Service

Everything should be automatic and default environments for server.properties are provided. If you need to make changes to server.properties, there are three ways:

  • Create a .env file and add any properties you would like to change in there.
  • Modify the default environments directly in the docker-compose.yml file.
  • Set environment variables like this: "MAX_PLAYER=10 docker compose up"

"create-backups" Service

create-backups will create backups of the world running periodically. You can set the directory it backups to, the # of backups you would like and how often to back up in minutes.

Environment Variables (and Defaults)

  • BACKUP_PATH -> ./backups
  • CURRENT_WORLD_PATH -> /current
  • BACKUP_TIME -> 5
  • NUM_OF_BACKUPS -> 15
  • LEVEL_NAME -> Bedrock level
  • USE_THIS_WORLD -> (empty by default)

Just like for "bedrock-server", there are three ways to set environment variables.

  • Inline example:
    • BACKUP_PATH=~/mybackups docker compose up
      • This will back up your world to a directory called mybackups in the current user's directory.
    • BACKUP_TIME=0.9 docker compose up
      • Sets the timer to backup every 0.9 minute, or roughly every 54 seconds.
    • NUM_OF_BACKUPS=5 docker compose up
      • Sets to 5 max backup instead of the default 15.

Things To Look Out For

  • WARNING: If you were to set the current world using USE_THIS_WORLD environment and a world with the same name as the LEVEL_NAME in "current-world" exists, then the world with the LEVEL_NAME will be overwritten with the one from USE_THIS_WORLD.
  • When you set a new LEVEL_NAME, the old world in "current-world" volume will not be deleted. If you would like to use the old world again, set the old world's LEVEL_NAME. The only solution to delete the old world for now is to delete the "current-world" volume completely.
  • The configuration for IP worked for me, but may not work for you if your local IP is different from 192.168.1.X. Please change the subnet, ip_range and gateway if needed be in networks->bedrock->ipam->config.

Docker Images

https://hub.docker.com/repository/docker/owentruong/bedrock-server/general

https://hub.docker.com/r/owentruong/bedrock-server-create-backups

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published