A standalone container running a minecraft server which is controllable through an http endpoint
docker pull ghcr.io/instantmc/client:latest
docker run -d --name mcclient -e auth='<YOUR_AUTH_KEY>' -p 25585:25585 ghcr.io/instantmc/client:latest
curl --header "auth: <YOUR_AUTH_KEY>" localhost:25585/server/start
Docker compose alternative:
services:
mcserver:
image: ghcr.io/instantmc/client:latest
restart: always
ports:
- "25585:25585"
environment:
- auth=<YOUR_AUTH_KEY>
volumes:
- ~/minecraft-server-world/:/server/world/
Port: 25585
Returns the server status
Response:
{
"server": {
"running": false
}
}
Starts the Minecraft Server
blocking
is optional. If true the response is sent when the minecraft server has fully booted up
Response:
{
"message": "Minecraft Server has been started"
}
Stops the Minecraft Server
blocking
is optional. If true the response is sent when the minecraft server has fully stopped
Response:
{
"message": "Minecraft Server has stopped"
}
Grants operator permission to the target player