Skip to content

Instantly share code, notes, and snippets.

@kwokhou
Last active September 8, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kwokhou/f20defbfc34b1bf86c6e6e9e6aa7fda4 to your computer and use it in GitHub Desktop.
Save kwokhou/f20defbfc34b1bf86c6e6e9e6aa7fda4 to your computer and use it in GitHub Desktop.
Docker Registry using Azure Blob Storage or AWS S3
version: 0.1
log:
fields:
service: registry
storage:
delete:
enabled: true
cache:
blobdescriptor: inmemory
azure:
accountname: account-name-for-azure-storage
accountkey: account-key-for-azure-storage
container: docker-registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 30s
threshold: 2
version: 0.1
log:
fields:
service: registry
storage:
delete:
enabled: true
cache:
blobdescriptor: inmemory
s3:
accesskey: awsaccesskey
secretkey: awssecretkey
region: us-west-1
regionendpoint: http://myobjects.local
bucket: bucketname
encrypt: true
keyid: mykeyid
secure: true
v4auth: true
chunksize: 5242880
rootdirectory: /s3/object/name/prefix
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 30s
threshold: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment