Add scripts for installing a terraria
server
This commit is contained in:
parent
f1f4364c63
commit
c9ba881ab2
5 changed files with 42 additions and 0 deletions
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
terraria:
|
||||||
|
environment: {}
|
||||||
|
command:
|
||||||
|
-autocreate 1
|
||||||
|
-difficulty 1
|
||||||
|
-seed "AwesomeSeed"
|
||||||
|
-lang "en-US"
|
24
scripts/Common/Software/docker/services/terraria/main.fish
Executable file
24
scripts/Common/Software/docker/services/terraria/main.fish
Executable 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
|
Loading…
Reference in a new issue