feat: add minecraft server app

This commit is contained in:
Nicolas Meienberger 2022-11-12 16:14:08 +01:00
parent a1146f25ad
commit 5cae94f775
5 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{
"$schema": "../schema.json",
"name": "Minecraft Server",
"available": true,
"exposable": true,
"no_gui": true,
"port": 25565,
"id": "minecraft-server",
"tipi_version": 1,
"version": "latest",
"categories": ["gaming"],
"description": "Minecraft Server",
"short_desc": "Run a minecraft server",
"author": "Geoff Bourne",
"source": "https://github.com/itzg/docker-minecraft-server",
"form_fields": [
{
"type": "text",
"label": "Minecraft version",
"hint": "The version of Minecraft to use, leave empty for latest",
"placeholder": "1.18.2",
"required": false,
"env_variable": "MC_VERSION"
}
]
}

View File

@ -0,0 +1,25 @@
version: "3.7"
services:
minecraft-server:
container_name: minecraft-server
image: itzg/minecraft-server
ports:
- ${APP_PORT}:25565
environment:
EULA: "TRUE"
VERSION: ${MC_VERSION:-LATEST}
tty: true
stdin_open: true
restart: unless-stopped
volumes:
- ${APP_DATA_DIR}/data/minecraft-data:/data
networks:
- tipi_main_network
labels:
traefik.enable: ${APP_EXPOSED}
traefik.http.routers.minecraft-server.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.minecraft-server.entrypoints: websecure
traefik.http.routers.minecraft-server.service: minecraft-server
traefik.http.routers.minecraft-server.tls.certresolver: myresolver
traefik.http.services.minecraft-server.loadbalancer.server.port: 25565

View File

@ -0,0 +1,9 @@
Minecraft Server that will automatically download selected version at startup
Once you have installed the app, the server will be available on port 25565 (default Minecraft port).
In order to enter the server console run the following command on your server:
```
docker exec -i mc rcon-cli
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@ -15,6 +15,9 @@
"exposable": {
"type": "boolean"
},
"no_gui": {
"type": "boolean"
},
"port": {
"type": "integer",
"minimum": 0,