From 26b7e62a81df19cc93a804e72d42201101cd5fad Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Tue, 19 Nov 2024 10:09:14 +0100 Subject: [PATCH] Initial --- .gitignore | 2 ++ compose.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .gitignore create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc48ac9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +auth/ +.env diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..7daa7ff --- /dev/null +++ b/compose.yml @@ -0,0 +1,46 @@ +services: + registry: + image: registry:2 + container_name: registry + env_file: + - .env + environment: + REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data + REGISTRY_STORAGE_DELETE_ENABLED: 'true' + REGISTRY_AUTH: htpasswd + REGISTRY_AUTH_HTPASSWD_REALM: Registry + REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password + REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: "[$REGISTRY_URL]" + REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]' + 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]' + volumes: + - /mnt/raid/registry/data:/data + - ./auth:/auth + networks: + - nginx_proxy + + registry-ui: + image: joxit/docker-registry-ui:main + container_name: registry-ui + restart: unless-stopped + environment: + - SINGLE_REGISTRY=true + - REGISTRY_TITLE=Docker Registry UI + - DELETE_IMAGES=true + - SHOW_CONTENT_DIGEST=true + - NGINX_PROXY_PASS_URL=http://registry:5000 + - SHOW_CATALOG_NB_TAGS=true + - CATALOG_MIN_BRANCHES=1 + - CATALOG_MAX_BRANCHES=1 + - TAGLIST_PAGE_SIZE=100 + - REGISTRY_SECURED=false + - CATALOG_ELEMENTS_LIMIT=1000 + networks: + - nginx_proxy + +networks: + nginx_proxy: + external: true +