From e7d4bceb3be62e8b53a9178c58ce3ebd450a0d9b Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 17 Nov 2023 18:23:32 -0800 Subject: [PATCH] adding in container for private docker registry --- container-registry/auth/registry.password | 1 + container-registry/docker-compose.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 container-registry/auth/registry.password create mode 100644 container-registry/docker-compose.yaml diff --git a/container-registry/auth/registry.password b/container-registry/auth/registry.password new file mode 100644 index 0000000..fb48bcf --- /dev/null +++ b/container-registry/auth/registry.password @@ -0,0 +1 @@ +talksik:$2y$05$AADMbl4ELBzI8gQ1fMphOe.Jaf7W7T6Na/5yR/TJTdSAJM.NfcrOC diff --git a/container-registry/docker-compose.yaml b/container-registry/docker-compose.yaml new file mode 100644 index 0000000..73e4723 --- /dev/null +++ b/container-registry/docker-compose.yaml @@ -0,0 +1,15 @@ +version: '3' + +services: + registry: + image: registry:2 + ports: + - "5000:5000" + environment: + REGISTRY_AUTH: htpasswd + REGISTRY_AUTH_HTPASSWD_REALM: Registry + REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password + REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data + volumes: + - ./auth:/auth + - ./data:/data