Add kopia service
This commit is contained in:
@ -18,6 +18,7 @@
|
|||||||
./services/gitea-runner.nix
|
./services/gitea-runner.nix
|
||||||
./services/homepage.nix
|
./services/homepage.nix
|
||||||
./services/immich.nix
|
./services/immich.nix
|
||||||
|
./services/kopia.nix
|
||||||
./services/memos.nix
|
./services/memos.nix
|
||||||
./services/nextcloud.nix
|
./services/nextcloud.nix
|
||||||
./services/nginx-proxy-manager.nix
|
./services/nginx-proxy-manager.nix
|
||||||
|
52
ServeNix/services/kopia.nix
Normal file
52
ServeNix/services/kopia.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
virtualisation.oci-containers.containers.kopia = {
|
||||||
|
image = "kopia/kopia:latest";
|
||||||
|
autoStart = true;
|
||||||
|
|
||||||
|
dependsOn = [];
|
||||||
|
|
||||||
|
ports = [
|
||||||
|
# "51515:51515"
|
||||||
|
];
|
||||||
|
|
||||||
|
volumes = [
|
||||||
|
"kopia_config:/app/config"
|
||||||
|
"kopia_cache:/app/cache"
|
||||||
|
"kopia_logs:/app/logs"
|
||||||
|
"kopia_temp:/tmp/shared"
|
||||||
|
|
||||||
|
"/media/synology-syncthing:/repository"
|
||||||
|
|
||||||
|
"nextcloud_data:/data/nextcloud:ro"
|
||||||
|
"immich_data:/data/immich:ro"
|
||||||
|
"gitea_data:/data/gitea:ro"
|
||||||
|
"memos_data:/data/memos:ro"
|
||||||
|
];
|
||||||
|
|
||||||
|
environment = {
|
||||||
|
USER = "christoph";
|
||||||
|
KOPIA_PASSWORD = "kopia";
|
||||||
|
};
|
||||||
|
|
||||||
|
entrypoint = "/bin/kopia";
|
||||||
|
|
||||||
|
cmd = [
|
||||||
|
"server"
|
||||||
|
"start"
|
||||||
|
"--disable-csrf-token-checks"
|
||||||
|
"--insecure"
|
||||||
|
"--address=0.0.0.0:51515"
|
||||||
|
"--server-username=christoph"
|
||||||
|
"--server-password=kopia"
|
||||||
|
];
|
||||||
|
|
||||||
|
extraOptions = [
|
||||||
|
"--net=behind-nginx"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user