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
5
10
storage_redirect : _env:STORAGE_REDIRECT
6
- standalone : true
7
- index_endpoint : _env:INDEX_ENDPOINT
11
+ # Token auth is enabled (if NOT standalone)
8
12
disable_token_auth : _env:DISABLE_TOKEN_AUTH
13
+ # No priv key
9
14
privileged_key : _env:PRIVILEGED_KEY
10
-
15
+ # No search backend
11
16
search_backend : _env:SEARCH_BACKEND
17
+ # SQLite search backend
12
18
sqlalchemy_index_database : _env:SQLALCHEMY_INDEX_DATABASE:sqlite:////tmp/docker-registry.db
13
19
20
+ # Mirroring is not enabled
14
21
mirroring :
15
22
source : _env:MIRROR_SOURCE # https://registry-1.docker.io
16
23
source_index : _env:MIRROR_SOURCE_INDEX # https://index.docker.io
17
24
tags_cache_ttl : _env:MIRROR_TAGS_CACHE_TTL # 864000 # seconds
18
25
19
- # Enabling LRU cache for small files. This speeds up read/write on small files
20
- # when using a remote storage backend (like S3).
21
26
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
24
30
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).
25
35
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
28
39
password : _env:CACHE_LRU_REDIS_PASSWORD
29
40
30
41
# Enabling these options makes the Registry send an email on each code Exception
@@ -40,14 +51,14 @@ common:
40
51
# Enable bugsnag (set the API key)
41
52
bugsnag : _env:BUGSNAG
42
53
43
-
44
-
45
54
local : &local
55
+ << : *common
46
56
storage : local
47
57
storage_path : _env:STORAGE_PATH:/tmp/registry
48
58
49
59
50
60
s3 : &s3
61
+ << : *common
51
62
storage : s3
52
63
s3_region : _env:AWS_REGION
53
64
s3_bucket : _env:AWS_BUCKET
@@ -63,6 +74,7 @@ s3: &s3
63
74
# https://developers.google.com/storage/docs/reference/v1/getting-startedv1#keys
64
75
# for details on access and secret keys.
65
76
gcs :
77
+ << : *common
66
78
storage : gcs
67
79
boto_bucket : _env:GCS_BUCKET
68
80
storage_path : _env:STORAGE_PATH:/registry
79
91
80
92
# This flavor is for storing images in Openstack Swift
81
93
swift : &swift
94
+ << : *common
82
95
storage : swift
83
96
storage_path : _env:STORAGE_PATH:/registry
84
97
# keystone authorization
@@ -92,8 +105,9 @@ swift: &swift
92
105
# This flavor stores the images in Glance (to integrate with openstack)
93
106
# See also: https://github.com/dotcloud/openstack-docker
94
107
glance : &glance
108
+ << : *common
95
109
storage : glance
96
- storage_alternate : _env:GLANCE_STORAGE_ALTERNATE:local
110
+ storage_alternate : _env:GLANCE_STORAGE_ALTERNATE:file
97
111
storage_path : _env:STORAGE_PATH:/tmp/registry
98
112
99
113
openstack :
@@ -110,6 +124,7 @@ openstack-swift:
110
124
<< : *glance-swift
111
125
112
126
elliptics :
127
+ << : *common
113
128
storage : elliptics
114
129
elliptics_nodes : _env:ELLIPTICS_NODES
115
130
elliptics_wait_timeout : _env:ELLIPTICS_WAIT_TIMEOUT:60
@@ -127,11 +142,13 @@ elliptics:
127
142
# This is the default configuration when no flavor is specified
128
143
dev : &dev
129
144
<< : *local
145
+ loglevel : _env:LOGLEVEL:debug
130
146
search_backend : _env:SEARCH_BACKEND:sqlalchemy
131
147
132
- # This flavor is automatically used by unit tests
148
+ # This flavor is used by unit tests
133
149
test :
134
150
<< : *dev
151
+ index_endpoint : https://indexstaging-docker.dotcloud.com
135
152
standalone : True
136
153
storage_path : _env:STORAGE_PATH:~/tmp/test
137
154
0 commit comments