Working registry
This commit is contained in:
parent
335c0524e0
commit
7c30c8c059
|
@ -1 +1,2 @@
|
|||
.env
|
||||
.env
|
||||
htpasswd
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
htpasswd -iBbn <file> username
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue