Skip to main content

Minecraft Server

  1. Description
  2. Prerequisites
  3. Quickstart
  4. Usage

Description

This is a description of a self-created Minecraft Server. This Minecraft Server is deployed by a Docker container with Docker Compose.

Prerequisites

  • Docker
  • Docker Compose

Quickstart

  1. Clone the Github project:
git clone git@github.com:HerzogElias/Minecraft_Server.git
  1. Download your Minecraft Server from:
wget https://piston-data.mojang.com/v1/objects/6bce4ef400e4efaa63a13d5e6f6b500be969ef81/server.jar
  1. Copy your download to the root directory of your project.
cp server.jar ./Minecraft_Server
  1. Navigate to the correct directory:
cd /Minecraft_Server
  1. Start the build with Docker Compose:
docker compose up --build 

Usage

Check Server Health Connection:

Check your Minecraft Server status with the following command:

mcstatus localhost:8888 status

Configuration of your Minecraft Server

You can configure your server in the server.properties file:

motd
level-name
gamemode
difficulty
pvp
max-players
online-mode
allow-nether
enable-command-block
spawn-animals
spawn-monsters
spawn-npcs
generate-structures
view-distance
white-list
server-port
server-ip
hardcore
force-gamemode
enable-rcon
rcon.password

If you don't configure your own server properties, you have a default configuration.

motd=A Minecraft Server
level-name=world
gamemode=survival
difficulty=easy
pvp=true
max-players=20
online-mode=true
allow-nether=true
enable-command-block=false
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
generate-structures=true
view-distance=10
white-list=false
server-port=25565
server-ip=
hardcore=false
force-gamemode=false
enable-rcon=false
rcon.password=geheim