Creates project directory structure in /docker Creates docker-compose.yml with sensible defaults Creates borgmatic config in /etc/borgmatic.d Adds proxy info to caddyfile and reloads caddy Config file generation done via jsonnet and yq Borgmatic configured to backup to borgbase repo
9 lines
228 B
Bash
Executable File
9 lines
228 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
for dir in /docker/*; do
|
|
if [ -d "$dir" ] && [ "$(basename "$dir")" != "scripts" ]; then
|
|
base_name=$(basename "$dir")
|
|
/code/scripts/docker-gen/docker-gen.sh "$base_name" --only-borgmatic
|
|
fi
|
|
done
|