Minecraft Docker#

Minecraft Server#

Docker image that provides a Minecraft Server that will automatically download selected version at startup

Docker#

docker run -d -it -p 25565:25565 -e EULA=TRUE itzg/minecraft-server
docker run -d -it --name mc -v mc:/data -p 25565:25565 -e EULA=TRUE -e MEMORY=2G itzg/minecraft-server

Docker Compose#

version: "3"
services:
  mc:
    image: itzg/minecraft-server
    ports:
      - 25565:25565
    environment:
      EULA: "TRUE"
    tty: true
    stdin_open: true
    restart: unless-stopped
    volumes:
      # attach a directory relative to the directory containing this compose file
      - ./minecraft-data:/data

Data directory#

https://docker-minecraft-server.readthedocs.io/en/latest/img/level-vs-world.drawio.png

PocketMine-MP#

A server software for Minecraft: Bedrock Edition in PHP

Docker#

mkdir wherever-you-want
cd wherever-you-want
mkdir data plugins
sudo chown -R 1000:1000 data plugins
docker run -it -p 19132:19132/udp -v $PWD/data:/data -v $PWD/plugins:/plugins ghcr.io/pmmp/pocketmine-mp

References#