From 34932bfb21f3dca4202f0524eb5c3a15e196434d Mon Sep 17 00:00:00 2001 From: Kappeh Date: Sat, 10 Jan 2026 02:16:34 +0000 Subject: [PATCH] Add docker registry ui container --- compose.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/compose.yml b/compose.yml index 3fdcd4b..b9497db 100644 --- a/compose.yml +++ b/compose.yml @@ -12,6 +12,12 @@ services: - "REGISTRY_AUTH_HTPASSWD_PATH=/run/secrets/registry_auth_htpasswd" - "REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry" - "REGISTRY_HTTP_HOST=https://registry.leaf.home.kappeh.org" + - "REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin=['https://docker.leaf.home.kappeh.org']" + - "REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods=['HEAD','GET','OPTIONS']" + - "REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials=[true]" + - "REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers=['Authorization','Accept','Cache-Control']" + - "REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers=[Docker-Content-Digest]" + - "REGISTRY_STORAGE_DELETE_ENABLED=false" - "OTEL_TRACES_EXPORTER=none" networks: - docker_registry_network @@ -20,6 +26,28 @@ services: volumes: - /mnt/docker_registry_2/data:/var/lib/registry:rw + registry_ui: + container_name: docker_registry_ui + image: joxit/docker-registry-ui:2.5.7 + restart: unless-stopped + # user: 2014:2014 # docker_registry:docker_registry + environment: + - "SINGLE_REGISTRY=true" + - "REGISTRY_URL=https://registry.leaf.home.kappeh.org" + - "REGISTRY_TITLE=Local Docker Registry" + - "DELETE_IMAGES=false" + - "SHOW_CONTENT_DIGEST=true" + - "SHOW_CATALOG_NB_TAGS=true" + - "CATALOG_MIN_BRANCHES=1" + - "CATALOG_MAX_BRANCHES=1" + - "TAGLIST_PAGE_SIZE=100" + - "REGISTRY_SECURED=true" + - "THEME=dark" + networks: + - docker_registry_network + ports: + - 5002:80 + secrets: registry_auth_htpasswd: file: ./htpasswd