From 34f8ab714a5dfdfc29ec59cdd2c14606a8e9712d Mon Sep 17 00:00:00 2001 From: Christian Lempa Date: Tue, 6 Sep 2022 15:43:09 +0200 Subject: [PATCH] registry template --- docker-compose/registry/README.md | 0 docker-compose/registry/docker-compose.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 docker-compose/registry/README.md create mode 100644 docker-compose/registry/docker-compose.yml diff --git a/docker-compose/registry/README.md b/docker-compose/registry/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose/registry/docker-compose.yml b/docker-compose/registry/docker-compose.yml new file mode 100644 index 0000000..dc44249 --- /dev/null +++ b/docker-compose/registry/docker-compose.yml @@ -0,0 +1,16 @@ +version: '3' + +services: + app: + image: registry:2 + container_name: docker-registry + restart: unless-stopped + environment: + REGISTRY_AUTH: htpasswd + REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd + REGISTRY_AUTH_HTPASSWD_REALM: Local Registry Realm + ports: + - 5000 + volumes: + - ./data:/var/lib/registry + - ./auth:/auth:ro \ No newline at end of file