Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 713d7bc

Browse files
author
Mangled Deutz
committed
Updated config sample (synch with new Config)
Docker-DCO-1.1-Signed-off-by: Mangled Deutz <[email protected]> (github: dmp42)
1 parent 4b40c3f commit 713d7bc

File tree

1 file changed

+34
-17
lines changed

1 file changed

+34
-17
lines changed

config/config_sample.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,41 @@
1-
# The `common' part is automatically included (and possibly overriden by all
2-
# other flavors)
3-
common:
4-
loglevel: _env:LOGLEVEL:debug
1+
# All other flavors inherit the `common' config snippet
2+
common: &common
3+
# Default log level is info
4+
loglevel: _env:LOGLEVEL:info
5+
# By default, the registry acts standalone (eg: doesn't query the index)
6+
standalone: _env:STANDALONE:true
7+
# The default endpoint to use (if NOT standalone) is index.docker.io
8+
index_endpoint: _env:INDEX_ENDPOINT:https://index.docker.io
9+
# Storage redirect is disabled
510
storage_redirect: _env:STORAGE_REDIRECT
6-
standalone: true
7-
index_endpoint: _env:INDEX_ENDPOINT
11+
# Token auth is enabled (if NOT standalone)
812
disable_token_auth: _env:DISABLE_TOKEN_AUTH
13+
# No priv key
914
privileged_key: _env:PRIVILEGED_KEY
10-
15+
# No search backend
1116
search_backend: _env:SEARCH_BACKEND
17+
# SQLite search backend
1218
sqlalchemy_index_database: _env:SQLALCHEMY_INDEX_DATABASE:sqlite:////tmp/docker-registry.db
1319

20+
# Mirroring is not enabled
1421
mirroring:
1522
source: _env:MIRROR_SOURCE # https://registry-1.docker.io
1623
source_index: _env:MIRROR_SOURCE_INDEX # https://index.docker.io
1724
tags_cache_ttl: _env:MIRROR_TAGS_CACHE_TTL # 864000 # seconds
1825

19-
# Enabling LRU cache for small files. This speeds up read/write on small files
20-
# when using a remote storage backend (like S3).
2126
cache:
22-
host: _env:CACHE_REDIS_HOST
23-
port: _env:CACHE_REDIS_PORT
27+
host: _env:CACHE_REDIS_HOST:localhost
28+
port: _env:CACHE_REDIS_PORT:6379
29+
db: 0
2430
password: _env:CACHE_REDIS_PASSWORD
31+
32+
# Enabling LRU cache for small files
33+
# This speeds up read/write on small files
34+
# when using a remote storage backend (like S3).
2535
cache_lru:
26-
host: _env:CACHE_LRU_REDIS_HOST
27-
port: _env:CACHE_LRU_REDIS_PORT
36+
host: _env:CACHE_LRU_REDIS_HOST:localhost
37+
port: _env:CACHE_LRU_REDIS_PORT:6379
38+
db: 0
2839
password: _env:CACHE_LRU_REDIS_PASSWORD
2940

3041
# Enabling these options makes the Registry send an email on each code Exception
@@ -40,14 +51,14 @@ common:
4051
# Enable bugsnag (set the API key)
4152
bugsnag: _env:BUGSNAG
4253

43-
44-
4554
local: &local
55+
<<: *common
4656
storage: local
4757
storage_path: _env:STORAGE_PATH:/tmp/registry
4858

4959

5060
s3: &s3
61+
<<: *common
5162
storage: s3
5263
s3_region: _env:AWS_REGION
5364
s3_bucket: _env:AWS_BUCKET
@@ -63,6 +74,7 @@ s3: &s3
6374
# https://developers.google.com/storage/docs/reference/v1/getting-startedv1#keys
6475
# for details on access and secret keys.
6576
gcs:
77+
<<: *common
6678
storage: gcs
6779
boto_bucket: _env:GCS_BUCKET
6880
storage_path: _env:STORAGE_PATH:/registry
@@ -79,6 +91,7 @@ gcs:
7991

8092
# This flavor is for storing images in Openstack Swift
8193
swift: &swift
94+
<<: *common
8295
storage: swift
8396
storage_path: _env:STORAGE_PATH:/registry
8497
# keystone authorization
@@ -92,8 +105,9 @@ swift: &swift
92105
# This flavor stores the images in Glance (to integrate with openstack)
93106
# See also: https://github.com/dotcloud/openstack-docker
94107
glance: &glance
108+
<<: *common
95109
storage: glance
96-
storage_alternate: _env:GLANCE_STORAGE_ALTERNATE:local
110+
storage_alternate: _env:GLANCE_STORAGE_ALTERNATE:file
97111
storage_path: _env:STORAGE_PATH:/tmp/registry
98112

99113
openstack:
@@ -110,6 +124,7 @@ openstack-swift:
110124
<<: *glance-swift
111125

112126
elliptics:
127+
<<: *common
113128
storage: elliptics
114129
elliptics_nodes: _env:ELLIPTICS_NODES
115130
elliptics_wait_timeout: _env:ELLIPTICS_WAIT_TIMEOUT:60
@@ -127,11 +142,13 @@ elliptics:
127142
# This is the default configuration when no flavor is specified
128143
dev: &dev
129144
<<: *local
145+
loglevel: _env:LOGLEVEL:debug
130146
search_backend: _env:SEARCH_BACKEND:sqlalchemy
131147

132-
# This flavor is automatically used by unit tests
148+
# This flavor is used by unit tests
133149
test:
134150
<<: *dev
151+
index_endpoint: https://indexstaging-docker.dotcloud.com
135152
standalone: True
136153
storage_path: _env:STORAGE_PATH:~/tmp/test
137154

0 commit comments

Comments
 (0)