From 277404e994ce4b2a464d5b31238daae5e3e63491 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Fri, 27 Sep 2024 14:38:32 +0300 Subject: [PATCH] feat(systems/hosts/oci): auto-update and remove registry ui port --- systems/hosts/oci/default.nix | 3 --- systems/hosts/oci/websites.nix | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/systems/hosts/oci/default.nix b/systems/hosts/oci/default.nix index 4b0791d..14d71e9 100644 --- a/systems/hosts/oci/default.nix +++ b/systems/hosts/oci/default.nix @@ -26,9 +26,6 @@ in { extraOptions = [ "--network=host" ]; - ports = [ - "${toString registryUIPort}:80" - ]; environment = { REGISTRY_URL = "http://10.1.2.9:5000"; SINGLE_REGISTRY = "true"; diff --git a/systems/hosts/oci/websites.nix b/systems/hosts/oci/websites.nix index fd8e7f8..288abe8 100644 --- a/systems/hosts/oci/websites.nix +++ b/systems/hosts/oci/websites.nix @@ -16,6 +16,9 @@ in { ports = [ "${toString comPort}:80" ]; + labels = { + "io.containers.autoupdate" = "registry"; + }; }; virtualisation.oci-containers.containers."liljamo-dev-zola" = { @@ -27,5 +30,8 @@ in { ports = [ "${toString devPort}:80" ]; + labels = { + "io.containers.autoupdate" = "registry"; + }; }; } -- 2.44.1