This project is the result of wanting a way to interact with my childrens' Minecraft world via a REST API. I plan to combine this project with another REST API that will handle authentication and parsing the Minecraft server log output into something more meaningful for an upstream UI.
Run the container with:
docker run -t -v /minecraft/widnercraft:/data -p 25598:25565 -p 10000:9999 -d --name widnercraft kai5263499/restcraft-backend
This assumes that /minecraft/widnercraft contains minecraft-server.jar
To change the weather:
curl -X POST --data "/time set day" localhost:10000/cmd --header "Content-Type:text/plain"
In case you want to run this locally, here are the configuration options for mcaserve.json
server_directory - full path to the directory that you want to run minecraft from. This directory will accumulate player files and world dataserver_jar - the Minecraft server jar to usememory - how much memory in megabytes to allocate for MinecraftwebPort - the port that the web interface listens onwebHost - the host that the web interface binds toContent type
Image
Digest
sha256:cbec431d8…
Size
385 MB
Last updated
almost 11 years ago
docker pull kai5263499/restcraft-backend