caprover / one-click-apps

Community Maintained One Click Apps (https://github.com/caprover/caprover)
Apache License 2.0
557 stars 544 forks source link

App Suggestion: itzg/minecraft-server #438

Open Foxtrek64 opened 3 years ago

Foxtrek64 commented 3 years ago

Please tell us what app you'd like to see on CapRover as a one-click app. We currently have an app for Spigot servers (see #143), however the https://github.com/itzg/docker-minecraft-server docker image is a more generalized container which allows for a far wider selection of minecraft servers using only environment variables.

Do you know if there is any official Docker image for the app? Docker image: https://hub.docker.com/r/itzg/minecraft-server Kubernetes Helm Chart: https://itzg.github.io/minecraft-server-charts/

Information about environment variables (there are a lot of them) are in the readme. There are environment variables to determine the server type and version as well as variables for determining various configuration items for the minecraft server itself (command blocks, pvp, default game mode, etc.).

Foxtrek64 commented 3 years ago

It seems adding the minecraft configuration variables is likely unnecessary for this one-click app. The preferred way to configure the servers appears, smartly so, to be the server.properties file in persistent storage.

Specifying them on creation will set their initial value, but unless a custom override is configured, this value is henceforth ignored.

As such, I would propose only exposing a single server configuration option: EULA=TRUE. The only other ones which are exposed should be the configuration variables for the docker container itself, such as what kind of server to use (sponge, spigot, forge) and its version number.