services:
registry:
image: registry:2.8.2
volumes:
- "./config.yml:/etc/docker/registry/config.yml"
- "./data:/var/lib/registry"
ports:
- "5000:5000/tcp"
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemeory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3
proxy:
remoteurl: https://registry-1.docker.io
username: yezzi
password: 123456