Created
May 3, 2017 20:50
-
-
Save mizanRahman/76aabf8676fcce1a2bc38f6ebe5a2a4b to your computer and use it in GitHub Desktop.
docker registry and mirror setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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