Compare commits
37 commits
cbdf3c4f5c
...
96024edac5
Author | SHA1 | Date | |
---|---|---|---|
96024edac5 | |||
aaf11e0c1d | |||
6d18b563fc | |||
b164c3f93b | |||
b150e2aa9a | |||
cfe061a159 | |||
9246e7d9e8 | |||
cdbc346411 | |||
0d6f3a4654 | |||
229ad0b149 | |||
bb441b38d0 | |||
bd394560a3 | |||
ee3a114d52 | |||
51146383bd | |||
a67abc08c6 | |||
8b99247c60 | |||
9546178b4f | |||
a1c3176811 | |||
bdcb868012 | |||
e72accc181 | |||
6c844d177b | |||
66311a149b | |||
2553b28255 | |||
ce0c94d913 | |||
aef1941c05 | |||
76d060a410 | |||
63a6740a4c | |||
529e91c4fa | |||
9c4a1fe11c | |||
7069c2fe20 | |||
533d343054 | |||
5e352d0cb7 | |||
5e0ca4ec47 | |||
1f4fef116a | |||
f93414387a | |||
ef91b70ef9 | |||
253e6fabd6 |
10 changed files with 60 additions and 28 deletions
0
scripts/Common/Software/docker/services/anki-sync/main.fish
Normal file → Executable file
0
scripts/Common/Software/docker/services/anki-sync/main.fish
Normal file → Executable file
|
@ -2,3 +2,4 @@ include:
|
|||
- path:
|
||||
- docker-compose.base.yml
|
||||
- docker-compose.secrets.yml
|
||||
- docker-compose.overrides.yml
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
services:
|
||||
ci:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ci.Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- server.common.env
|
||||
docker:
|
||||
image: drone/drone-runner-docker
|
||||
restart: unless-stopped
|
||||
env_file: runner.common.env
|
||||
environment:
|
||||
DRONE_RUNNER_NAME: docker-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
ssh:
|
||||
image: drone/drone-runner-ssh
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- runner.common.env
|
||||
environment:
|
||||
DRONE_RUNNER_NAME: ssh-runner
|
|
@ -1,26 +1,19 @@
|
|||
services:
|
||||
ci-template:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: ci.Dockerfile
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- server.common.env
|
||||
extends:
|
||||
file: docker-compose.core.yml
|
||||
service: ci
|
||||
env_file: []
|
||||
environment: {}
|
||||
docker-template:
|
||||
image: drone/drone-runner-docker
|
||||
restart: unless-stopped
|
||||
extends:
|
||||
file: docker-compose.core.yml
|
||||
service: docker
|
||||
depends_on: []
|
||||
env_file:
|
||||
- runner.common.env
|
||||
environment:
|
||||
DRONE_RUNNER_NAME: docker-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
env_file: []
|
||||
ssh-template:
|
||||
image: drone/drone-runner-ssh
|
||||
restart: unless-stopped
|
||||
extends:
|
||||
file: docker-compose.core.yml
|
||||
service: ssh
|
||||
depends_on: []
|
||||
env_file:
|
||||
- runner.common.env
|
||||
environment:
|
||||
DRONE_RUNNER_NAME: ssh-runner
|
||||
env_file: []
|
||||
|
|
2
scripts/Common/Software/docker/services/drone/main.fish
Normal file → Executable file
2
scripts/Common/Software/docker/services/drone/main.fish
Normal file → Executable file
|
@ -19,7 +19,7 @@ begin
|
|||
echo "{}" | sudo tee "$config" >/dev/null
|
||||
echo "{}" | sudo tee "$secrets" >/dev/null
|
||||
|
||||
cp "$dir"/{ci.Dockerfile,.dockerignore} "$root"
|
||||
cp "$dir"/{ci.Dockerfile,docker-compose.core.yml,.dockerignore} "$root"
|
||||
echo "DRONE_JSONNET_ENABLED=true" | sudo tee "$root/server.common.env" >/dev/null
|
||||
echo "DRONE_RUNNER_CAPACITY=2" | sudo tee "$root/runner.common.env" >/dev/null
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ services:
|
|||
FORGEJO__actions__ENABLED: "true"
|
||||
FORGEJO__openid__ENABLE_OPENID_SIGNUP: "false"
|
||||
FORGEJO__cron.git_gc_repos__ENABLED: "true"
|
||||
FORGEJO__cron.git_lfs: "true"
|
||||
FORGEJO__cron.gc_lfs__ENABLED: "true"
|
||||
volumes:
|
||||
- ./data/forgejo:/data
|
||||
- config:/data/gitea/conf
|
||||
|
@ -40,7 +40,7 @@ services:
|
|||
image: shenxn/protonmail-bridge
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./bridge:/root
|
||||
- ./data/bridge:/root
|
||||
runner:
|
||||
image: gitea/act_runner
|
||||
restart: unless-stopped
|
||||
|
|
|
@ -5,3 +5,4 @@ services:
|
|||
- 127.0.0.1:1337:3000
|
||||
- 127.0.0.1:1338:22
|
||||
db: {}
|
||||
runner: {}
|
||||
|
|
6
scripts/Common/Software/docker/services/forgejo/main.fish
Normal file → Executable file
6
scripts/Common/Software/docker/services/forgejo/main.fish
Normal file → Executable file
|
@ -20,22 +20,26 @@ begin
|
|||
initializeServiceInstallation $argv
|
||||
sudo cp "$dir/docker-compose.base.yml" "$root"
|
||||
|
||||
installDockerService $argv
|
||||
set port (yq (getSSHPortKey) "$source" | mutatePort "$port")
|
||||
|
||||
DOMAIN=(getServiceDomain $server) PW=$pw DB=Git USER=forgejo PW=$pw begin
|
||||
set -l gitEnv "$(getServiceKey "$service").environment"
|
||||
set -l actEnv "$(getServiceKey "runner").environment"
|
||||
set -l dbEnv "$(getServiceKey "db").environment"
|
||||
|
||||
PORT=$port yq "$(getSSHPortKey) = env(PORT)" "$source" | \
|
||||
yq "$gitEnv.FORGEJO__server__DOMAIN = env(DOMAIN)" | \
|
||||
yq "$gitEnv.FORGEJO__database__NAME = env(DB)" | \
|
||||
yq "$gitEnv.FORGEJO__database__USER = env(USER)" | \
|
||||
yq "$gitEnv.FORGEJO__database__PASSWD = env(PW)" | \
|
||||
yq "$dbEnv.MARIADB_DATABASE = env(DB)" | \
|
||||
yq "$dbEnv.MARIADB_USER = env(USER)" | \
|
||||
yq "$dbEnv.MARIADB_PASSWORD = env(PW)" | \
|
||||
URL="https://$DOMAIN/" yq "$actEnv.GITEA_INSTANCE_URL = env(URL)" | \
|
||||
sudo tee "$secrets" >/dev/null
|
||||
end
|
||||
|
||||
installDockerService $argv
|
||||
end
|
||||
|
||||
function configureSW -V dir -V user -V service
|
||||
|
|
5
scripts/Common/Software/docker/services/jellyfin/main.fish
Normal file → Executable file
5
scripts/Common/Software/docker/services/jellyfin/main.fish
Normal file → Executable file
|
@ -59,13 +59,12 @@ begin
|
|||
|
||||
and yq "$envKey.PUID = $uid" "$file" | \
|
||||
yq "$envKey.PGID = $gid" | \
|
||||
yq -y . | \
|
||||
sudo tee "$config" >/dev/null
|
||||
end
|
||||
|
||||
cp "$config" "$file"
|
||||
cp "$secrets" "$file"
|
||||
URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" | \
|
||||
sudo tee "$config" >/dev/null
|
||||
sudo tee "$secrets" >/dev/null
|
||||
|
||||
for dir in "$root"/{downloads,config/{,jellyfin,flood,rtorrent,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}}
|
||||
sudo mkdir -p "$dir"
|
||||
|
|
|
@ -116,6 +116,7 @@ begin
|
|||
sudo mkdir -p (getServiceRoot $argv)
|
||||
sudo mkdir -p "$nginxRoot"
|
||||
sudo mkdir -p (dirname (getServiceSecretsConfig $argv))
|
||||
sudo touch "$root/docker-compose.overrides.yml"
|
||||
sudo cp "$dir/docker-compose.yml" "$root"
|
||||
end
|
||||
|
||||
|
@ -172,7 +173,17 @@ begin
|
|||
sudo systemctl restart nginx
|
||||
end
|
||||
|
||||
function getExtraBackupPatterns
|
||||
echo ""
|
||||
end
|
||||
|
||||
function getBackupArgs
|
||||
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.secrets\.yml|data)\$"
|
||||
set -l extraPatterns (getExtraBackupPatterns)
|
||||
|
||||
if [ -n "$extraPatterns" ]
|
||||
set extraPatterns "|$extraPatterns"
|
||||
end
|
||||
|
||||
printf "%s\n" --base-directory (getServiceRoot $argv) --hidden --no-ignore "^(docker-compose\.(secrets|overrides)\.yml|data)\$$extraPatterns"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue