Docker wrapper to run Minecraft in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jimmy 88718390fa Add ignore line based on regex 4 days ago
src Add ignore line based on regex 4 days ago
.gitignore Remove binaries 10 months ago
Dockerfile Add default regex 4 days ago
LICENSE Initial commit 1 year ago
README.md Fix typos 4 weeks ago
build.sh Use multi stage build 4 weeks ago
docker-compose.yml Add line ignore regex 4 days ago
get_minecraft.sh Add script to download Minecraft server 10 months ago
go.mod Initial commit 1 year ago
go.sum Initial commit 1 year ago

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