Go to file
Jimmy 478b393917 Add dummy server for testing 2022-01-12 22:31:57 +00:00
src Add dummy server for testing 2022-01-12 22:31:57 +00:00
.gitignore Remove binaries 2021-01-04 21:38:36 +13:00
Dockerfile Add dummy server for testing 2022-01-12 22:31:57 +00:00
LICENSE Initial commit 2020-10-13 08:09:21 +00:00
README.md Fix typos 2021-09-20 21:43:14 +12:00
docker-compose.yml Add dummy server for testing 2022-01-12 22:31:57 +00:00
go.mod Add dummy server for testing 2022-01-12 22:31:57 +00:00
go.sum Add dummy server for testing 2022-01-12 22:31:57 +00:00

README.md

Docker Minecraft

Wrapper to run Minecraft in Docker

Build Image

./build.sh

Get Minecraft Sever For Testing

./get_minecraft.sh

Run Server

docker-compose up -d

docker run -it --name minecraft -p 25565:25565 -v $PWD:/server -e MAX_MEM=1G magmise/minecraft

Get Logs

docker-compose logs

docker logs minecraft

Send Command to Server

docker-compose exec cmd say hello

docker exec minecraft cmd say hello

Attach to Container

docker attach minecraft

To detach use ctrl+p ctrl+q

Don't use ctrl+c to disconnect, it will kill the server

Environmental Variables

JAR

Default is server.jar

MIN_MEM

Default is 512M

MAX_MEM

Default is 1G

STOP

Default is stop

This would be used for Bungee where the stop command is end