Skip to content

esturafd/docker-minecraft-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-minecraft-server

Other languages available: spanish

This project is a docker image for a minecraft server.

Build

git clone https://github.com/esturafd/docker-minecraft-server.git
cd docker-minecraft-server
docker build -t esturafd/minecraft-server .

Use

docker run -d -p 25565:25565 esturafd/minecraft-server

Pesistance of configuration

docker run -d -p 25565:25565 \
      -v somedir:/opt/minecraft-server/data \
      -v otherdir:/opt/minecraft-server/logs \
      esturafd/minecraft-server

Custom configuration

All minecraft server configurations existing in the server.properties file are enabled, some of them are listed here, more information in the official minecraft documentation.

docker run -d -p 25565:25565 -e LEVEL_NAME=miservidor esturafd/minecraft-server

MINECRAFT_SOURCE

The server binary source, by default it will download version 1.14.

LEVEL_NAME

Server name.

MOTD

Server description.

GAMEMODE

Game mode.

SERVER_PORT

Server port.

In addition to these variables, there are also two others that control the memory allocation that the server will have, by default both have a value of 1024M, recommended by Mojang.

docker run -d -p 25565:25565 -e MINECRAFT_XMX=2048M -e MINECRAFT_XMS=2048M esturafd/minecraft-server

MINECRAFT_XMX

Maximum memory size.

MINECRAFT_XMS

Initial memory size.

FAQ

The configuration files are usually in the same folder as the server jar, does persistence also include jar?

No, the persistence in volume, only includes the files ops.json, banned-*.json, whitelist.json, server.properties and the map folder.

Where can I find more information about custom settings?

The variables are the same as the server.properties file but in uppercase and changing the middle dash (-) by underscore (_), and you can find more information on this page.

About

minecraft server docker image, see it also in docker hub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published