summaryrefslogtreecommitdiff
path: root/roles/docker/registry/templates
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-10-24 23:31:26 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-10-24 23:31:26 +0200
commit5a8d9370af750c25ac55a7ced51e24f29bb9facc (patch)
tree15e0d02c0dd4bf5c8421ec1f2ff06383b8fbb0c2 /roles/docker/registry/templates
parentdocker/engine: also install buildx (diff)
add new role docker/registry (WIP)
Diffstat (limited to 'roles/docker/registry/templates')
-rw-r--r--roles/docker/registry/templates/config.yml.j235
1 files changed, 35 insertions, 0 deletions
diff --git a/roles/docker/registry/templates/config.yml.j2 b/roles/docker/registry/templates/config.yml.j2
new file mode 100644
index 00000000..ac5bbae1
--- /dev/null
+++ b/roles/docker/registry/templates/config.yml.j2
@@ -0,0 +1,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