Update containers to latest release

This commit is contained in:
♥ Minnie ♥ 2024-06-16 23:08:52 +08:00
parent 9f886e22d4
commit 5a16fd7360
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
10 changed files with 82 additions and 38 deletions

View file

@ -1,11 +1,13 @@
{ config, ... }:
let
port = "8181";
in
{
age.secrets.microbin = {
# Environment variables for microbin
rekeyFile = ./environment.age;
owner = "root";
group = "root";
owner = "sajenim";
group = "users";
};
virtualisation.oci-containers.containers = {
@ -14,7 +16,7 @@
autoStart = true;
image = "danielszabo99/microbin:2.0";
ports = [
"8181:8080/tcp" # WebUI
"${port}:8080/tcp" # WebUI
];
volumes = [
# Container data
@ -41,7 +43,7 @@
services.traefik.dynamicConfigOptions.http.services = {
microbin.loadBalancer.servers = [
{ url = "http://127.0.0.1:8181"; }
{ url = "http://127.0.0.1:${port}"; }
];
};
}