Very basic, unofficial docker image for purpurmc.
docker run -v "/host/purpur:/opt/purpur" -e EULA=true -e UPDATE=true -e MEMORY=2G ghcr.io/elraro/purpurmc-docker
- default version is 1.20
EULA=true
is requiredUPDATE=true
always downloads the latest purpurmc build on startup- root user not recommended, see below
useradd --no-create-home -s /sbin/nologin -U minecraft
mkdir -p /opt/purpur
chown -R minecraft:minecraft /opt/minecraft
- set env variables
UID
andGUID
on startup
(seeid [-u/-g] minecraft
)
version: '3.8'
services:
purpurmc:
image: ghcr.io/elraro/purpurmc-docker
environment:
- EULA=true
- GID=1003
- UID=1003
- VERSION=1.20
- UPDATE=true
- MEMORY=8G
volumes:
- /opt/purpur/:/opt/purpur/
ports:
- 25565:25565
restart: unless-stopped