A Minecraft Server Manager using Docker
  • Python 97.2%
  • Shell 2.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-08-30 16:57:12 -05:00
src Merge branch 'main' of https://github.com/oitsjustjose/MC-Docker into main 2021-06-14 09:31:05 -05:00
.gitignore Fix reqs, add includes to ignore 2021-06-10 21:12:20 -05:00
dmsm.png Add image, update readme. 2021-08-30 16:57:12 -05:00
flags.md Fix missing note in flags 2021-06-11 09:41:36 -05:00
install.sh Update script 2021-06-14 09:36:56 -05:00
readme.md Add image, update readme. 2021-08-30 16:57:12 -05:00
requirements.txt Fix reqs, add includes to ignore 2021-06-10 21:12:20 -05:00

Docker Minecraft Server Manager (DMSM)

Overview

DMSM is a docker-powered server management system that makes creating a new server very easy to do. This is based off of itzg's minecraft-server docker image, but with a configuration tool and CLI based around it.

DMSM is for Unix Systems Only. I have compiled it for macOS (both ARM and x86) as well as for Linux (x86-64 only), as Windows users should be using Linux under WSL (with Docker) for the ideal Windows server setup.

Installation

Requirements

The only requirement for using this is Docker. The application is written in Python but compiled to an executible, so you don't even need Python. All you need is docker, which you can find how to set up here.

Install

An installer has been created for Unix-based users which can be found on the Releases Page. Once downloaded, run it as root.

Usage

Create

dmsm create <SERVER_NAME> -p <PORT> -r <SERVER_ROOT> -v <VERSION> <...OTHER_FLAGS>

You can find all flags individually detailed (by hand 😓), within flags.md

Start: dmsm start <SERVER_NAME>

Stop: dmsm stop <SERVER_NAME> [-f|--force]

Restart: dmsm restart <SERVER_NAME> [-f|--force]

Delete: dmsm delete <SERVER_NAME>

Status: dmsm status <SERVER_NAME>

Console: dmsm console <SERVER_NAME>

Logs: dmsm logs <SERVER_NAME>

Building

Building this tool is straight forward, and needs to be done in some Debain distro. What you'll need:

  • sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev libssl-dev libgirepository1.0-dev
  • Python 3.6 -- this version is specific
  • Pip for Python 3.6
  • Pip Packages described in requirements.txt (you can install them via pip install -r requirements.txt)

All you have to do once you have the dependencies handled is to run python3 -m nuitka --standalone --onefile dmsm.py from within the src folder.