Go to file
Salt 7a6404b861 Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
.dockerignore Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
.gitignore Create gitignore 2021-02-16 12:18:56 -06:00
.gitlab-ci.yml Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
Dockerfile Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
README.md Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
server.properties Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00
start-server.sh Initial test build. Looks like everything works 2021-04-09 16:28:17 -05:00

README.md

docker-minecraft

A Dockerfile and some assorted scripts to build a Minecraft Forge server container.

Usage

Deploy as expected:

docker run -p 25565:25565 rehashedsalt/minecraft-forge

And badda bing, badda boom, you'll have a Minecraft Forge server of whatever the latest stable is.

Application State

For obvious reasons, you'll want to consult the documentation of any mods you have installed, but a majority of application state lives here-ish:

  • /minecraft/world

  • /minecraft/ops.json, whitelist.json, banned-ips.json, banned-players.json, etc.

  • /minecraft/logs

Environment Variables

variable description
JRE_XMX Maximum amount of heap passed to the main Minecraft process
JRE_XMS Minimum heap size passed to the main Minecraft process
ARGS Any additional arguments to be passed to the JVM

Useful Arguments

The following arguments may be useful to pass through $ARGS from time to time:

  • -Dfml.queryResult=confirm - Useful when confirming through world corruption

Weird Defaults

The default server.properties contains the following changes to better facilitate usage in a modded environment:

allow-flight=true
difficulty=hard
enable-command-block=true
spawn-protection=0

License

MIT