ADD restic exporter docker

This commit is contained in:
Alexandre LUCAZEAU 2023-03-30 20:29:08 +00:00
parent a3455f131c
commit a63163e2f2
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
{ config, pkgs, ... }:
let
host = "restic.atlanticaweb.fr";
in
{
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
};
oci-containers = {
backend = "podman";
containers.restic-exporter = {
image = "ngosang/restic-exporter";
autoStart = true;
ports = [ "8001:8001" ]; #server locahost : docker localhost
volumes = [ "/opt/restic:/data" ];
environment = [
"TZ=Europe/Paris"
"RESTIC_REPO_URL=sftp:u329746@u329746.your-storagebox.de:/home/Nextcloud"
"RESTIC_REPO_PASSWORD=herzleid"
];
};
};
};
}