Save `/var/lib/private` too
This commit is contained in:
parent
831b1f88ad
commit
07a573284f
|
@ -10,8 +10,9 @@ let
|
||||||
networks = { external_network.internal = false; };
|
networks = { external_network.internal = false; };
|
||||||
|
|
||||||
docker-compose.volumes = {
|
docker-compose.volumes = {
|
||||||
postgres-data = { };
|
|
||||||
pictrs-data = { };
|
pictrs-data = { };
|
||||||
|
postgres-data = { };
|
||||||
|
private-data = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -21,10 +22,12 @@ let
|
||||||
volumes = [
|
volumes = [
|
||||||
"postgres-data:/var/lib/postgres/data"
|
"postgres-data:/var/lib/postgres/data"
|
||||||
"pictrs-data:/var/lib/pict-rs"
|
"pictrs-data:/var/lib/pict-rs"
|
||||||
|
"private-data:/var/lib/private"
|
||||||
"${cfg.admin-password-file}:${cfg.admin-password-file}"
|
"${cfg.admin-password-file}:${cfg.admin-password-file}"
|
||||||
];
|
];
|
||||||
ports = [ "${toString cfg.port}:80" ];
|
ports = [ "${toString cfg.port}:80" ];
|
||||||
networks = [ "external_network" ];
|
networks = [ "external_network" ];
|
||||||
|
capabilities.SYS_ADMIN = true;
|
||||||
};
|
};
|
||||||
nixos = {
|
nixos = {
|
||||||
useSystemd = true;
|
useSystemd = true;
|
||||||
|
|
Loading…
Reference in New Issue