Compare commits
3 commits
eb739c806d
...
ba0c1076c3
Author | SHA1 | Date | |
---|---|---|---|
ba0c1076c3 | |||
3d3fa32f0d | |||
46dc6be934 |
14 changed files with 57 additions and 21 deletions
|
@ -30,6 +30,7 @@ in {
|
|||
minecraft.enable = mkEnableOption "Minecraft server";
|
||||
nextcloud.enable = mkEnableOption "Nextcloud server";
|
||||
teamspeak.enable = mkEnableOption "TeamSpeak server";
|
||||
terraria.enable = mkEnableOption "Terraria server";
|
||||
trackmania.enable = mkEnableOption "TrackMania server";
|
||||
vaultwarden.enable = mkEnableOption "Vaultwarden server";
|
||||
woodpecker.enable = mkEnableOption "Woodpecker CI server";
|
||||
|
|
|
@ -62,6 +62,7 @@ in {
|
|||
minecraft.enable = true;
|
||||
nextcloud.enable = true;
|
||||
teamspeak.enable = true;
|
||||
terraria.enable = true;
|
||||
trackmania.enable = true;
|
||||
vaultwarden.enable = true;
|
||||
woodpecker.enable = true;
|
||||
|
|
|
@ -112,8 +112,8 @@ begin
|
|||
printf "%s\0" "$name-ci" /
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --hidden --no-ignore "data|\.secret\.|\.overrides\." (getServiceRoot $argv)
|
||||
function getExtraBackupPatterns
|
||||
echo "\.secret\.env\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
|
|
|
@ -94,9 +94,5 @@ begin
|
|||
printf "%s\0" "$_flag_name" /
|
||||
end
|
||||
|
||||
function getBackupArgs -V root
|
||||
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv)
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
end
|
||||
|
|
|
@ -136,8 +136,8 @@ begin
|
|||
end
|
||||
end
|
||||
|
||||
function getBackupArgs -V root
|
||||
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" --exclude "docker-compose.base.yml" (getServiceRoot $argv)
|
||||
function getExtraBackupPatterns
|
||||
echo "^proton\.env\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
|
|
|
@ -13,7 +13,6 @@ services:
|
|||
- ./mods:/mods
|
||||
- ./config/legacy:/config
|
||||
- ./data/legacy:/data
|
||||
- ./worlds/legacy:/data/worlds
|
||||
- ./legacy.properties:/data/server.properties
|
||||
bedrock:
|
||||
image: itzg/minecraft-bedrock-server
|
||||
|
@ -28,5 +27,4 @@ services:
|
|||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./data/bedrock:/data
|
||||
- ./worlds/bedrock:/data/worlds
|
||||
- ./bedrock.properties:/data/server.properties
|
||||
|
|
|
@ -15,7 +15,7 @@ begin
|
|||
set -l gid
|
||||
set -l file (mktemp)
|
||||
set -l root (getServiceRoot $argv)
|
||||
set -l dirs "$root"/{mods,{data,config,worlds}/{legacy,bedrock}}
|
||||
set -l dirs "$root"/{mods,{data,config}/{legacy,bedrock}}
|
||||
set -l files "$root"/{legacy,bedrock}.properties
|
||||
set -l config "$root/docker-compose.yml"
|
||||
configureDockerService $argv
|
||||
|
@ -65,8 +65,8 @@ begin
|
|||
function getServiceLocations
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --hidden --no-ignore "config|data|mods|worlds|\.properties\$" --exclude "docker-compose.yml" (getServiceRoot $argv)
|
||||
function getExtraBackupPatterns
|
||||
echo "\.properties\$|^(config|mods)\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
|
|
|
@ -100,5 +100,9 @@ begin
|
|||
printf "%s\0" "$name" /
|
||||
end
|
||||
|
||||
function getExtraBackupPatterns
|
||||
echo "^(cache|db|nextcloud)\.env\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
end
|
||||
|
|
|
@ -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
|
|
@ -29,8 +29,8 @@ begin
|
|||
function getServiceLocations
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --hidden --no-ignore "^docker-compose\.(.*\.)\?.overrides.yml|data\$" (getServiceRoot $argv)
|
||||
function getExtraBackupPatterns
|
||||
echo "^docker-compose\.core\.overrides\.yml\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv --name "tm-forever"
|
||||
|
|
|
@ -36,9 +36,5 @@ begin
|
|||
printf "%s\0" "$_flag_name" /
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --hidden --no-ignore . --exclude "docker-compose.yml" (getServiceRoot $argv)
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
end
|
||||
|
|
|
@ -108,8 +108,8 @@ begin
|
|||
printf "%s\0" "$name-ci" /
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --hidden --no-ignore "data|\.secret\.|docker-compose\.overrides\.yml" (getServiceRoot $argv)
|
||||
function getExtraBackupPatterns
|
||||
echo "\.secret\.env\$"
|
||||
end
|
||||
|
||||
runInstaller --force $argv
|
||||
|
|
Loading…
Reference in a new issue