refactor: remove unused terraria config

This commit is contained in:
Julian Tölle 2022-11-12 13:25:53 +01:00
parent 66391e6224
commit 7569ad0b80
2 changed files with 0 additions and 26 deletions

View file

@ -25,21 +25,6 @@ resource "hcloud_server" "terraria" {
server_type = "cx21"
location = "nbg1"
ssh_keys = [data.hcloud_ssh_key.default.id]
provisioner "file" {
content = templatefile("./gameservers/docker-compose.terraria.yml", {
image = "ryshe/terraria"
image_tag = "tshock-1.4.3.6-4.5.17-2"
volume_id = hcloud_volume.terraria_data.id
world_name = "TheDriftingMoon"
})
destination = "/terraria/docker-compose.yml"
connection {
type = "ssh"
host = self.ipv4_address
}
}
}
resource "hcloud_volume" "terraria_data" {

View file

@ -1,11 +0,0 @@
version: "3.8"
services:
tshock:
image: ${image}:${image_tag}
ports:
- 7777:7777
volumes:
- /mnt/HC_VOLUME_${volume_id}/Terraria/Worlds/:/root/.local/share/Terraria/Worlds/
environment:
WORLD_FILENAME: ${world_name}.wld