mimise/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).
This image provides all vanilla versions since release 1.2.5 to the newest version. Also the latest snapshot is available.
docker run --name mc -e EULA=true -p 25565:25565 mimise/vanilla:1.15.2
Please choose the version you want to run.
Variable | Explanation | default value |
---|---|---|
EULA | Agree to the minecraft EULA | false |
MIN_RAM | The initial RAM to start the server | 1024M |
MAX_RAM | The maximal RAM the server can use | 1024M |
RCON_PASSWORD | The password to access RCON | random |
RCON_PORT | The port to access RCON | 25577 |
To add environment variables:
... -e <Environment variable>=<value> ...
Volume | explanation |
---|---|
/worlds | Folder with the world |
/config | Files that are intended to change |
/data | Files that are not intended to change |
To mount a volume use:
... -v <path on host>:<path in container> ...
You can execute commands on server using docker exec.
docker exec <container_name> rcon <command>
Note: Replace the placeholders.
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 ...
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:
Why I can't access the logs?
As this image tries to create a micro service logs should handled via the container stdout.
docker pull mimise/vanilla