/docker-papermc

A docker image for minecraft papermc/waterfall server forks

Primary LanguageShell

docker-paper

This is a docker image to setup a server with papermc or waterfall (bungecoord fork)

How to run it?

Its pretty easy, you can just use the docker run command with the required options.

sudo docker run \
  --name myserver \
  -e MINECRAFT_SERVER_TYPE=paper \
  -e MINECRAFT_VERSION=1.16.4 \
  --mount type=bind,source=$(pwd),target=/minecraft/server \
  -p 25565:25565/tcp -p 25565:25565/udp \
  -itd \
  misterquestions/paper:latest

Environment variables

  • MINECRAFT_START_DELAY: If you're running with compose and you require a database, you might want to delay server start in order to ensure database is ready to accept connections.
  • MINECRAFT_SERVER_BUILD: This specifies an specific version to use for the server jar, if not set it will use latest instead.
  • MINECRAFT_SERVER_TYPE: This option defines which jar to use either paper or waterfall.
  • MINECRAFT_VERSION: This variable defines which server version to use, depending if using waterfall you must specify only the minor version (for example 1.16), but if you're using paper please include the patch (for example 1.16.4).
  • MINECRAFT_MIN_RAM: Allows defining the allocated RAM for the server on startup, the default value is 128M.
  • MINECRAFT_MAX_RAM: This allows to control how much RAM should the server be able to use, the default value is 2G.
  • PAPER_BUILD: If you wish to define a custom build of paper or waterfall you can define it in here, otherwise latest version will be used.