Sign inSign up

esturafd/minecraft-server

By esturafd

•Updated almost 7 years ago

Minecraft server

Image
0

164

esturafd/minecraft-server repository overview

⁠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⁠.

Tag summary

Content type

Image

Digest

Size

234 MB

Last updated

almost 7 years ago

docker pull esturafd/minecraft-server