Working registry

This commit is contained in:
Ash Leece 2020-06-27 18:04:15 +00:00
parent 335c0524e0
commit 7c30c8c059
3 changed files with 9 additions and 2 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
.env
.env
htpasswd

1
registry/auth/README.md Normal file
View File

@ -0,0 +1 @@
htpasswd -iBbn <file> username

View File

@ -3,11 +3,16 @@ services:
registry:
image: registry:2
container_name: registry
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
ports:
- 5000:5000
volumes:
- registry:/var/lib/registry
- ./auth:/auth
restart: unless-stopped
volumes:
registry:
registry: