added registry config.yml
This commit is contained in:
@@ -70,6 +70,7 @@ services:
|
||||
volumes:
|
||||
- /home/aetos/registry:/var/lib/registry
|
||||
- /home/aetos/registry/auth:/auth:ro
|
||||
- ./registry/config.yml:/etc/docker/registry/config.yml:ro
|
||||
environment:
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: "Registry Realm"
|
||||
|
17
registry/config.yml
Normal file
17
registry/config.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
version: 0.1
|
||||
log:
|
||||
level: debug
|
||||
http:
|
||||
addr: :5000
|
||||
headers:
|
||||
Access-Control-Allow-Origin: ["http://dcr.aetoskia.com"]
|
||||
Access-Control-Allow-Methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
|
||||
Access-Control-Allow-Headers: ["Authorization", "Content-Type"]
|
||||
Access-Control-Expose-Headers: ["Docker-Content-Digest"]
|
||||
storage:
|
||||
filesystem:
|
||||
rootdirectory: /var/lib/registry
|
||||
auth:
|
||||
htpasswd:
|
||||
realm: basic-realm
|
||||
path: /auth/htpasswd
|
Reference in New Issue
Block a user