diff --git a/templates/terraria-server/0/docker-compose.yml b/templates/terraria-server/0/docker-compose.yml new file mode 100644 index 000000000..1b6540397 --- /dev/null +++ b/templates/terraria-server/0/docker-compose.yml @@ -0,0 +1,18 @@ +version: '2' +services: + terraria-data: + image: busybox + labels: + io.rancher.container.start_once: true + volumes: + - ${config_folder}:/config + terraria-server: + image: ${terraria_image} + ports: + - "${port}:7777" + tty: true + stdin_open: true + labels: + io.rancher.sidekicks: terraria-data + volumes_from: + - terraria-data \ No newline at end of file diff --git a/templates/terraria-server/0/rancher-compose.yml b/templates/terraria-server/0/rancher-compose.yml new file mode 100644 index 000000000..fc7c56923 --- /dev/null +++ b/templates/terraria-server/0/rancher-compose.yml @@ -0,0 +1,31 @@ +.catalog: + name: Terraria Server + version: "1.0" + description: | + Terraria server + questions: + - variable: "terraria_image" + description: "The terraria server" + label: "Terraria server image" + type: "enum" + options: + - "beardedio/terraria:vanilla-latest" + - "beardedio/terraria:vanilla-1.3.5.3" + - "beardedio/terraria:vanilla-1.3.4.4" + - "beardedio/terraria:vanilla-1.3.3.3" + - "beardedio/terraria:vanilla-1.3.2.1" + - "beardedio/terraria:vanilla-1.3.1.1" + default: "beardedio/terraria:vanilla-latest" + required: true + - variable: "port" + description: "Expose port" + label: "Port:" + type: "int" + default: 7777 + required: true + - variable: "config_folder" + description: "Config folder location must exist with 'serverconfig.txt' file. https://terraria.gamepedia.com/Server#Server_config_file" + label: "Config folder:" + type: "string" + default: "/volumes/terraria-server" + required: true \ No newline at end of file diff --git a/templates/terraria-server/catalogIcon-terraria-server.png b/templates/terraria-server/catalogIcon-terraria-server.png new file mode 100644 index 000000000..52a9354f5 Binary files /dev/null and b/templates/terraria-server/catalogIcon-terraria-server.png differ diff --git a/templates/terraria-server/config.yml b/templates/terraria-server/config.yml new file mode 100644 index 000000000..dbe712d9a --- /dev/null +++ b/templates/terraria-server/config.yml @@ -0,0 +1,5 @@ +name: Terraria +description: | + Terraria server +version: 1.0 +category: Entertainment