summaryrefslogtreecommitdiff
path: root/roles/docker/registry/templates/config.yml.j2
blob: ac5bbae1b1f7bbde8467dcedda4bdcd708f37ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 0.1
log:
  accesslog:
    disabled: true
storage:
  filesystem:
    rootdirectory: /var/lib/docker-registry
  cache:
    blobdescriptor: inmemory
  delete:
    enabled: true
http:
  addr: "{{ docker_registry_http_listen }}"
{% if docker_registry_http_secret is defined %}
  secret: "{{ docker_registry_http_secret }}"
{% endif %}
  headers:
    X-Content-Type-Options: [nosniff]
{% if docker_registry_http_tls is defined %}
  tls:
    certificate: "{{ x509_certificate_path_fullchain }}"
    key: "{{ x509_certificate_path_key }}"
{% endif %}
{% if docker_registry_http_listen_debug is defined %}
  debug:
    addr: "{{ docker_registry_http_listen_debug }}"
    prometheus:
      enabled: true
      path: /metrics
{% endif %}
health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3