setup microbin
This commit is contained in:
parent
2543e94915
commit
b68b7f32fe
26
nixos/viridian/containers/microbin/default.nix
Normal file
26
nixos/viridian/containers/microbin/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
{ config, inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
age.secrets.microbin = {
|
||||||
|
# Environment variables for microbin
|
||||||
|
file = inputs.self + /secrets/microbin.age;
|
||||||
|
owner = "root";
|
||||||
|
group = "root";
|
||||||
|
};
|
||||||
|
|
||||||
|
virtualisation.oci-containers.containers = {
|
||||||
|
microbin = {
|
||||||
|
autoStart = true;
|
||||||
|
image = "danielszabo99/microbin:2.0.4";
|
||||||
|
ports = [
|
||||||
|
"8181:8080/tcp"
|
||||||
|
];
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/microbin:/app/microbin_data:rw"
|
||||||
|
];
|
||||||
|
environmentFiles = [
|
||||||
|
config.age.secrets.microbin.path
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue