Skip to content

Instantly share code, notes, and snippets.

@invalidusrname
Last active August 29, 2015 14:01
Show Gist options
  • Save invalidusrname/e7f0bb16c0145d24c5b4 to your computer and use it in GitHub Desktop.
Save invalidusrname/e7f0bb16c0145d24c5b4 to your computer and use it in GitHub Desktop.
docker-registry config
# Set env vars for AWS_* when launching - this config will refer to them.
# To specify prod flavor, set the environment variable SETTINGS_FLAVOR=prod
# example launching with this config, in a docker image:
# docker run -p 5000:5000 -e SETTINGS_FLAVOR=prod -e AWS_KEY=X -e AWS_SECRET=Y -e AWS_BUCKET=images registry-image
common:
boto_bucket: _env:AWS_BUCKET
s3_access_key: _env:AWS_KEY
s3_secret_key: _env:AWS_SECRET
s3_bucket: _env:AWS_BUCKET
s3_encrypt: true
s3_secure: true
secret_key: _env:SECRET_KEY
dev:
storage: s3
storage_path: /images
loglevel: debug
prod:
storage: s3
storage_path: /images
storage_redirect: False # Redirect signed URL for image files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment