This is a dockerized forge server for minecraft 1.12.2 (via itzg/minecraft-server). It pulls from this mod pack.
git clone --recurse-submodules https://github.com/jagprog5/modpack-serverCreate the env file:
cp env .envThen, get a curseforge api key and put it in the .env file.
Consider installing server functions (see install-functions below).
Thin wrapper around docker compose:
make start # start it
# all commands below should be invoked on a running server
make enter # console
make stop # stop it
# utility
make backup # create a backup now (already does it periodically)
make restore-backup # replaces current world with latest backup
make install-functions # OPTIONAL setup see script for detailsThis setup is optional. It can be skipped.
The server is configured to auto stop when idle for too long. This necessitates a startup mechanism. listener contains a web server that listens to port 25579 and calls the above make start when a GET is received (this can be called any number of times, it's only effective if the server is not already running).