registry template

This commit is contained in:
Christian Lempa 2022-09-06 15:43:09 +02:00
parent 1d138afabb
commit 34f8ab714a
2 changed files with 16 additions and 0 deletions

View File

View File

@ -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