34
systems/palatine-hill/docker/restic.nix
Normal file
34
systems/palatine-hill/docker/restic.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
virtualisation.oci-containers.containers = {
|
||||
restic = {
|
||||
image = "restic/rest-server:latest";
|
||||
volumes = [ "/ZFS/ZFS-primary/backups/restic:/data" ];
|
||||
environment = {
|
||||
OPTIONS = "--prometheus --htpasswd-file /data/.htpasswd";
|
||||
};
|
||||
ports = [ "8010:8000" ];
|
||||
extraOptions = [
|
||||
"--restart=always"
|
||||
"--network=restic_restic"
|
||||
];
|
||||
};
|
||||
|
||||
grafana = {
|
||||
image = "grafana/grafana:latest";
|
||||
extraOptions = [
|
||||
"--restart=always"
|
||||
"--network=haproxy-net"
|
||||
];
|
||||
volumes = [
|
||||
"grafanadata:/var/lib/grafana"
|
||||
"/ZFS/ZFS-primary/docker/restic/dashboards:/dashboards"
|
||||
"/ZFS/ZFS-primary/docker/restic/grafana.ini:/etc/grafana/grafana.ini"
|
||||
];
|
||||
environment = {
|
||||
GF_USERS_DEFAULT_THEME = "dark";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user