From fb8611694b6226310b2371fcfc112208fece0922 Mon Sep 17 00:00:00 2001 From: Muhammad Faizud Daroin Date: Sun, 11 Dec 2022 21:02:39 +0700 Subject: [PATCH] first commit --- README.md | 10 ++++++++++ docker-compose.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 README.md create mode 100644 docker-compose.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..759adc1 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# Docker registry + +Deploy docker registry with the following configuration: +- Using basic auth +- Using `joxit/docker-registry-ui` as web ui +- Deployed on port 5000 + +```shell +docker compose up -d +``` \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..b553608 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,25 @@ +version: '3' + +services: + registry: + image: registry:2.8 + restart: always + 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 + ui: + image: joxit/docker-registry-ui:2.3.3 + restart: always + ports: + - 5000:80 + environment: + - REGISTRY_TITLE=mfaizudd docker registry + - NGINX_PROXY_PASS_URL=http://registry:5000 + - SINGLE_REGISTRY=true + depends_on: + - registry \ No newline at end of file