Skip to content

Instantly share code, notes, and snippets.

@royseto
Created June 19, 2014 20:58
Show Gist options
  • Save royseto/4ed00c2f73887af7da38 to your computer and use it in GitHub Desktop.
Save royseto/4ed00c2f73887af7da38 to your computer and use it in GitHub Desktop.
Local Docker registry config.yml
# The `common' part is automatically included (and possibly overriden by all
# other flavors)
common:
loglevel: _env:LOGLEVEL:debug
storage_redirect: _env:STORAGE_REDIRECT
standalone: true
index_endpoint: _env:INDEX_ENDPOINT
disable_token_auth: _env:DISABLE_TOKEN_AUTH
privileged_key: _env:PRIVILEGED_KEY
search_backend: _env:SEARCH_BACKEND
sqlalchemy_index_database: _env:SQLALCHEMY_INDEX_DATABASE:sqlite:////tmp/docker-registry.db
mirroring:
source: _env:MIRROR_SOURCE # https://registry-1.docker.io
source_index: _env:MIRROR_SOURCE_INDEX # https://index.docker.io
tags_cache_ttl: _env:MIRROR_TAGS_CACHE_TTL # 864000 # seconds
# Enabling LRU cache for small files. This speeds up read/write on small files
# when using a remote storage backend (like S3).
cache:
host: _env:CACHE_REDIS_HOST
port: _env:CACHE_REDIS_PORT
password: _env:CACHE_REDIS_PASSWORD
cache_lru:
host: _env:CACHE_LRU_REDIS_HOST
port: _env:CACHE_LRU_REDIS_PORT
password: _env:CACHE_LRU_REDIS_PASSWORD
# Enabling these options makes the Registry send an email on each code Exception
email_exceptions:
smtp_host: _env:SMTP_HOST
smtp_port: _env:SMTP_PORT:25
smtp_login: _env:SMTP_LOGIN
smtp_password: _env:SMTP_PASSWORD
smtp_secure: _env:SMTP_SECURE:false
from_addr: _env:SMTP_FROM_ADDR:[email protected]
to_addr: _env:SMTP_TO_ADDR:[email protected]
# Enable bugsnag (set the API key)
bugsnag: _env:BUGSNAG
local: &local
standalone: true
storage: local
storage_path: /mnt/registry
search_backend: sqlalchemy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment