adding a docker registry to the head node
Change-Id: I9509b32c00c097259b83a802ab35f8c529a95947
diff --git a/roles/registry/templates/registry-compose.yml.j2 b/roles/registry/templates/registry-compose.yml.j2
new file mode 100644
index 0000000..f4702c5
--- /dev/null
+++ b/roles/registry/templates/registry-compose.yml.j2
@@ -0,0 +1,18 @@
+registry:
+ image: registry:2.4.0
+ container_name: registry
+ volumes:
+ - /docker-registry/registry:/var/lib/registry/docker/registry
+ - /docker-registry/conf:/conf
+ ports:
+ - "5000:5000"
+
+registry-mirror:
+ image: registry:2.4.0
+ container_name: registry-mirror
+ volumes:
+ - /docker-registry-mirror/registry:/var/lib/registry/docker/registry
+ - /docker-registry-mirror/conf:/conf
+ command: serve /conf/config.yml
+ ports:
+ - "5001:5000"