This repo hosts files to rapidly deploy a Minecraft PaperMC Server using Docker Compose.
- Put the version of Minecraft you want to host inside the
.env
file. - Verify the contents of the
server.properties
file. Make sure it works for you. - Create the
plugins
andconfig
directories. Make sure they're in the same location as the Compose YAML file. You can run:mkdir ./plugins ./config
- You can put any plugins (JAR files) compatible with PaperMC in the
plugins
directory. - Spin up the server with Docker Compose:
docker compose up -d
You can either update just to a new PaperMC build (Option 1), or update to a totally new Minecraft version (Option 2).
Start the build process again. The latest JAR will be downloaded during build-time. You can use this command:
docker compose up -d --build
Modify the .env
file to contain the Minecraft version you want to deploy.
Important Notes:
- A stable version of the PaperMC server must be available. The build will fail otherwise.
- Upgrading to a newer MC version should be fine, but downgrading to an older version should not be attempted! It may cause a failure to start due to permanent data loss or corruption.
If you want to use Minecraft 1.24.1, the file must be set to:
MINECRAFT_VERSION=1.21.4
Add the plugin JAR file into the plugins
directory. Restart the server with:
docker compose restart