2 description 'Docker Registry'
5 'recipe[ssl_cert::ca_certs]',
6 'recipe[ssl_cert::server_key_pairs]',
8 'recipe[docker-grid::registry]',
15 registry_cn = 'registry.docker.example.com'
20 'with_ssl_cert_cookbook' => true,
22 'common_name' => registry_cn,
27 'restart' => 'always',
28 'image' => 'registry:2',
33 # These environment variables will be set by the docker-grid::registry recipe automatically.
34 #'REGISTRY_HTTP_TLS_CERTIFICATE' => '/certs/domain.crt',
35 #'REGISTRY_HTTP_TLS_KEY' => '/certs/domain.key',
36 'REGISTRY_AUTH' => 'htpasswd',
37 'REGISTRY_AUTH_HTPASSWD_PATH' => '/auth/.htpasswd',
38 'REGISTRY_AUTH_HTPASSWD_REALM' => 'Registry Realm',
41 '/var/lib/docker-registry:/var/lib/registry',
42 # These volumes will be set by the docker-grid::registry recipe automatically.
43 #"#{server_cert_path(node['docker-grid']['registry']['ssl_cert']['common_name'])}:/certs/domain.crt:ro",
44 #"#{server_key_path(node['docker-grid']['registry']['ssl_cert']['common_name'])}:/certs/domain.key:ro",