Skip to content

Instantly share code, notes, and snippets.

@mizanRahman
Created May 3, 2017 20:50
Show Gist options
  • Select an option

  • Save mizanRahman/76aabf8676fcce1a2bc38f6ebe5a2a4b to your computer and use it in GitHub Desktop.

Select an option

Save mizanRahman/76aabf8676fcce1a2bc38f6ebe5a2a4b to your computer and use it in GitHub Desktop.
docker registry and mirror setup
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
proxy:
remoteurl: https://registry-1.docker.io
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
mirror:
image: registry:2
container_name: registry-mirror
ports:
- 127.0.0.1:5000:5000
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- ./data:/data
- ./config-mirror.yml:/etc/docker/registry/config.yml
registry:
image: registry:2
container_name: registry
ports:
- 127.0.0.1:5001:5000
environment:
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
volumes:
- ./data:/data
- ./config-registry.yml:/etc/docker/registry/config.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment