snowflake/hosts/yuki/services/stash.nix

25 lines
747 B
Nix
Raw Normal View History

_: let
storagePath = "/home/notoh/docker/stash";
in {
2023-05-28 22:00:50 -04:00
virtualisation.oci-containers.containers.stash = {
2024-03-10 09:35:27 -04:00
image = "stashapp/stash@sha256:067b4b244c0521421ebcaca49ebd6f4a3e6d837336f22f52ded4e82db1ba8538"; # v0.25.0
ports = ["9999:9999"];
2023-05-28 22:00:50 -04:00
environment = {
STASH_STASH = "/data/";
STASH_GENERATED = "/generated/";
STASH_METADATA = "/metadata/";
STASH_CACHE = "/cache/";
STASH_PORT = "9999";
};
volumes = [
"/etc/localtime:/etc/localtime:ro"
"${storagePath}/.config:/root/.stash"
"${storagePath}/data:/data"
"${storagePath}/.metadata:/metadata"
"${storagePath}/cache:/cache"
"${storagePath}/generated:/generated"
"${storagePath}/blobs:/blobs"
2023-05-28 22:00:50 -04:00
];
};
}