fix: add proper registry configuration
- Add valid config.yml for registry - Mount config file in docker-compose.yml - Fix configuration parsing error
This commit is contained in:
18
config.yml
Normal file
18
config.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: 0.1
|
||||
log:
|
||||
fields:
|
||||
service: registry
|
||||
storage:
|
||||
cache:
|
||||
blobdescriptor: inmemory
|
||||
filesystem:
|
||||
rootdirectory: /var/lib/registry
|
||||
http:
|
||||
addr: :5000
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: true
|
||||
interval: 10s
|
||||
threshold: 3
|
||||
@@ -9,6 +9,7 @@ services:
|
||||
- "5000"
|
||||
volumes:
|
||||
- registry-data:/var/lib/registry
|
||||
- ./config.yml:/etc/docker/registry/config.yml
|
||||
networks:
|
||||
- registry-network
|
||||
|
||||
|
||||
Reference in New Issue
Block a user