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'
28 'skip_setup' => false,
31 'skip_setup' => false,
34 'with_ssl_cert_cookbook' => true,
36 'common_name' => registry_cn,
41 'restart' => 'always',
42 'image' => 'registry:2',
47 # These environment variables will be set by the docker-grid::registry recipe automatically.
48 #'REGISTRY_HTTP_TLS_CERTIFICATE' => '/certs/domain.crt',
49 #'REGISTRY_HTTP_TLS_KEY' => '/certs/domain.key',
50 'REGISTRY_AUTH' => 'htpasswd',
51 'REGISTRY_AUTH_HTPASSWD_PATH' => '/auth/.htpasswd',
52 'REGISTRY_AUTH_HTPASSWD_REALM' => 'Registry Realm',
55 '/var/lib/docker-registry:/var/lib/registry',
56 # These volumes will be set by the docker-grid::registry recipe automatically.
57 #"#{server_cert_path(node['docker-grid']['registry']['ssl_cert']['common_name'])}:/certs/domain.crt:ro",
58 #"#{server_key_path(node['docker-grid']['registry']['ssl_cert']['common_name'])}:/certs/domain.key:ro",