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
.envfile. If you want to use Minecraft 1.21.10, the file must be set to:MINECRAFT_VERSION=1.21.10
- Verify the contents of the
server.propertiesfile. Make sure it works for you. - Create the
pluginsandconfigdirectories. 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
pluginsdirectory. - 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 --buildModify 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.
Add the plugin JAR file into the plugins directory. Restart the server with:
docker compose restart