mimise/vanilla

By mimise

Updated about 3 years ago

Image
0

10K+

vanilla

Minecraft Micro Service tries to get a minecraft server as a micro service.

This image provides support for amd64 and arm/v7 (Raspberry Pi).

Versions

This image provides all vanilla versions since release 1.2.5 to the newest version. Also the latest snapshot is available.

Quickstart

docker run --name mc -e EULA=true -p 25565:25565 mimise/vanilla:1.15.2

Please choose the version you want to run.

Environment variables

VariableExplanationdefault value
EULAAgree to the minecraft EULAfalse
MIN_RAMThe initial RAM to start the server1024M
MAX_RAMThe maximal RAM the server can use1024M
RCON_PASSWORDThe password to access RCONrandom
RCON_PORTThe port to access RCON25577

To add environment variables:

... -e <Environment variable>=<value> ...

Volumes

Volumeexplanation
/worldsFolder with the world
/configFiles that are intended to change
/dataFiles that are not intended to change

To mount a volume use:

... -v <path on host>:<path in container> ...

Run commands on server

You can execute commands on server using docker exec.

docker exec <container_name> rcon <command>

Note: Replace the placeholders.

Use RCON from outside docker

If you want to use RCON outside from docker you need to set the environment variables RCON_PASSWORD.

Please not forget to map the RCON port to the host.

... -p <outside rcon port>:25575 ...

Start server with docker-compose

version: '3'

services:
  server:
    environment:
      - EULA=true
      - MIN_RAM=512M
      - MAX_RAM=2048M
    image: 'mimise/paper:1.15.2'
    ports:
      - '25565:25565'
    restart: unless-stopped
    volumes:
      - 'server-worlds:/worlds'
      - 'server-data:/data'

volumes:
  server-worlds:
  server-data:

FAQ

Why I can't access the logs?

As this image tries to create a micro service logs should handled via the container stdout.

Other projects

TODO

  • add versions 1.0 to <1.2.5
  • Add beta versions
  • don't run application with root

Docker Pull Command

docker pull mimise/vanilla