Add scripts for installing a terraria server

This commit is contained in:
Manuel Thalmann 2024-11-27 05:10:42 +01:00
parent 27daeb9ae3
commit af07ed66db
5 changed files with 42 additions and 0 deletions

View file

@ -30,6 +30,7 @@ in {
minecraft.enable = mkEnableOption "Minecraft server"; minecraft.enable = mkEnableOption "Minecraft server";
nextcloud.enable = mkEnableOption "Nextcloud server"; nextcloud.enable = mkEnableOption "Nextcloud server";
teamspeak.enable = mkEnableOption "TeamSpeak server"; teamspeak.enable = mkEnableOption "TeamSpeak server";
terraria.enable = mkEnableOption "Terraria server";
trackmania.enable = mkEnableOption "TrackMania server"; trackmania.enable = mkEnableOption "TrackMania server";
vaultwarden.enable = mkEnableOption "Vaultwarden server"; vaultwarden.enable = mkEnableOption "Vaultwarden server";
woodpecker.enable = mkEnableOption "Woodpecker CI server"; woodpecker.enable = mkEnableOption "Woodpecker CI server";

View file

@ -62,6 +62,7 @@ in {
minecraft.enable = true; minecraft.enable = true;
nextcloud.enable = true; nextcloud.enable = true;
teamspeak.enable = true; teamspeak.enable = true;
terraria.enable = true;
trackmania.enable = true; trackmania.enable = true;
vaultwarden.enable = true; vaultwarden.enable = true;
woodpecker.enable = true; woodpecker.enable = true;

View file

@ -0,0 +1,8 @@
services:
terraria:
image: ryshe/terraria:latest
restart: unless-stopped
tty: true
stdin_open: true
volumes:
- ./data:/root/.local/share/Terraria/Worlds

View file

@ -0,0 +1,8 @@
services:
terraria:
environment: {}
command:
-autocreate 1
-difficulty 1
-seed "AwesomeSeed"
-lang "en-US"

View file

@ -0,0 +1,24 @@
#!/bin/env fish
begin
set -l dir (status dirname)
source "$dir/../service.fish"
function installSW -V dir
set -l root (getServiceRoot $argv)
initializeServiceInstallation $argv
cp -rf "$dir"/docker-compose{.base,.overrides}.yml "$root"
installDockerService $argv
end
function configureSW -V dir
configureDockerService $argv
end
function getServiceServers
end
function getServiceLocations
end
runInstaller --force $argv
end