setup microbin
This commit is contained in:
parent
b40f61c25b
commit
65fd1c26f3
|
@ -13,6 +13,8 @@
|
|||
./radarr.nix
|
||||
./recyclarr.nix
|
||||
./sonarr.nix
|
||||
|
||||
./microbin
|
||||
];
|
||||
virtualisation.oci-containers.backend = "docker";
|
||||
}
|
||||
|
|
28
nixos/viridian/containers/microbin/default.nix
Normal file
28
nixos/viridian/containers/microbin/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
age.secrets.microbin = {
|
||||
# Environment variables for microbin
|
||||
rekeyFile = ./environment.age;
|
||||
owner = "root";
|
||||
group = "root";
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.containers = {
|
||||
# Self-hosted, open-source pastbin
|
||||
microbin = {
|
||||
autoStart = true;
|
||||
image = "danielszabo99/microbin:2.0";
|
||||
ports = [
|
||||
"8181:8080/tcp" # WebUI
|
||||
];
|
||||
volumes = [
|
||||
# Container data
|
||||
"/srv/containers/microbin:/app/microbin_data:rw"
|
||||
];
|
||||
environmentFiles = [
|
||||
config.age.secrets.microbin.path
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
BIN
nixos/viridian/containers/microbin/environment.age
Normal file
BIN
nixos/viridian/containers/microbin/environment.age
Normal file
Binary file not shown.
|
@ -122,6 +122,17 @@
|
|||
];
|
||||
service = "jellyseerr";
|
||||
};
|
||||
|
||||
microbin = {
|
||||
rule = "Host(`bin.kanto.dev`)";
|
||||
entryPoints = [
|
||||
"websecure"
|
||||
];
|
||||
middlewares = [
|
||||
"internal"
|
||||
];
|
||||
service = "microbin";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
jellyseerr.loadBalancer.servers = [
|
||||
{ url = "http://192.168.1.102:5055"; }
|
||||
];
|
||||
microbin.loadBalancer.servers = [
|
||||
{ url = "http://192.168.1.102:8181"; }
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue