24 lines
747 B
Nix
24 lines
747 B
Nix
_: let
|
|
storagePath = "/home/notoh/docker/stash";
|
|
in {
|
|
virtualisation.oci-containers.containers.stash = {
|
|
image = "stashapp/stash@sha256:6b8814b61e4fe77bc910bec858dd45e0970c8af6f439c066317ae68f03af4f91"; # v0.25.0
|
|
ports = ["9999:9999"];
|
|
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"
|
|
];
|
|
};
|
|
}
|