Sign inSign up

leonfilser/papermc

By leonfilser

•Updated 12 months ago

A simple and fast Image to run a Minecraft Server

Image
1

349

leonfilser/papermc repository overview

⁠PaperMC Minecraft Server in Docker

Fast & Flexible Minecraft Server based on PaperMC.

⁠Quickstart

If you simply want to run an Minecraft Server without any worries execute this:

docker run -p 25565:25565 -v ${PWD}/data/:/minecraft leonfilser/papermc:latest

⁠Environment Variables

To keep it simple there are only 3 environment variabels you need to adjust:

VariableDescriptionDefault
VERSIONAdjust this to the Minecraft Version you want to use. (e.g. 1.17.1)latest
XMSSpecify the minimum RAM that is reserved for your server4G (Recommended)
XMGSpecify the maximum RAM that is available for your server8G

⁠docker-compose.yml

version: '3.5'

services:
  papermc-minecraft:
    image: leonfilser/papermc:latest
    restart: unless-stopped
    container_name: papermc-minecraft
    ports:
      - 25565:25565
    environment:
        #specify which Minecraft version you want to use 
      - VERSION=1.17.1
        #the minimum RAM for your server
      - XMS=4G
        #the maximum RAM for your server
      - XMG=8G
    volumes:
      - ${PWD}/data/:/minecraft

Tag summary

Content type

Image

Digest

sha256:495bfe563…

Size

229.4 MB

Last updated

12 months ago

docker pull leonfilser/papermc