A minecraft server launcher with the following features:
- supports running multiple mainline/vanilla and Forge servers at the same time
- handles stop/shutdown correctly, saving the world data before exiting
- starts quickly, unlike other docker minecraft servers that download code each time they start
- runs in a docker container, fully isolated from the host, restarting automatically server crash
Create a file with a name of your server and extension .env
using the server.env.example
as an example. Then run
./run.sh <server_name>.env [-f|-d]
-f
will run the server in the foreground-d
will drop into an interactive shell rather than starting the server
If the docker image for the version given in the .env
file is missing, the image will be built automatically.
Put your mods into the world-$NAME-extras/mods/
subfolder. In fact everything from the world-$NAME-extras/
folder will be copied into the minecraft server root folder during the server startup, so you can put your shaderpacks/
and everything else there.
Run ./build
with the Minecraft Server Version or "latest" for the latest version. If the version ends in "-forge" then the Forge server will be built.
- To send commands to the server inside the container use
cmd
- To backup the world files run
backup.sh
- To stop the server run
stop
or typestop
in the server console if it's running in foreground. It'll give it a chance to save the world before shutting down.
By running the Minecraft server you accept the Minecraft EULA