Closed Pheggas closed 1 year ago
The following setup will allow msh to start and stop the docker container:
1) make a msh directory and cd into it
2) download msh here
3) make a file server.config
mirroring docker ms server.config
4) set msh-config.json as following:
{
"Server": {
"Folder": ".",
"FileName": "",
"Version": "1.18.2",
"Protocol": 758
},
"Commands": {
"StartServer": "docker run -i -p 25565:25565 -e EULA=TRUE itzg/minecraft-server",
"StartServerParam": "",
"StopServer": "stop",
"StopServerAllowKill": 10
},
"Msh": {
"Debug": 3,
"ID": "",
"MshPort": 25555,
"MshPortQuery": 25555,
"TimeBeforeStoppingEmptyServer": 30,
"SuspendAllow": false,
"SuspendRefresh": -1,
"InfoHibernation": " §fserver status:\n §b§lHIBERNATING",
"InfoStarting": " §fserver status:\n §6§lWARMING UP",
"NotifyUpdate": true,
"NotifyMessage": true,
"Whitelist": [],
"WhitelistImport": false,
"ShowResourceUsage": false,
"ShowInternetUsage": false
}
}
5) start msh 6) clients will be able to connect to the port specified in msh starting logs
this config will start and stop docker container running mincraft server only when players are on the server.
this setup works for me, depending on your config you might have to fiddle with the ports
@Pheggas if you need further assistance feel free to write again in this issue or chat with me/other users on our discord server.
Is there an existing feature request for this?
Describe the feature you would like to see.
Hello. I'd like to start / see the dockerized version of Minecraft server but I miss the documentation for this approach.
So i think it doesn't support docker yet and here I am asking to add the feature.
Describe the solution you'd like.
I'm using portainer to manage my servers and specially for this dockerized Minecraft server I'm using Portainer stack (which is basically Docker Compose). I'd like Minecraft server hibernation to monitor and check if the stack / container is running or not.
Additional context to this request.
No response