Add Docker registry UI and tag cleanup automation

Deploy joxit/docker-registry-ui on port 8080 for browsing images/tags.
Add Python script to prune old registry tags (keeps last N per image),
scheduled daily at 2am via cron. Expose UI via reverse proxy at
registry.viktorbarzin.me with Authentik auth.
This commit is contained in:
Viktor Barzin 2026-02-07 22:38:15 +00:00
parent f8c25d9c23
commit 11d328fb99
3 changed files with 94 additions and 1 deletions

View file

@ -151,6 +151,20 @@ module "proxmox" {
rybbit_site_id = "190a7ad3e1c7"
}
# https://registry.viktorbarzin.me/
module "docker-registry-ui" {
source = "./factory"
name = "registry"
external_name = "docker-registry.viktorbarzin.lan"
port = 8080
tls_secret_name = var.tls_secret_name
depends_on = [kubernetes_namespace.reverse-proxy]
extra_annotations = {
# Override middleware chain to remove rate-limit; the UI fires many API calls to list repos/tags
"traefik.ingress.kubernetes.io/router.middlewares" = "traefik-csp-headers@kubernetescrd,traefik-crowdsec@kubernetescrd,traefik-authentik-forward-auth@kubernetescrd"
}
}
# https://valchedrym.viktorbarzin.me/
module "valchedrym" {
source = "./factory"