get the registry mirror working
Change-Id: I17731875cf88ef30a3178c1a70181dc793c12a65
diff --git a/roles/registry/templates/registry-compose.yml.j2 b/roles/registry/templates/registry-compose.yml.j2
index 90bacc9..3db462c 100644
--- a/roles/registry/templates/registry-compose.yml.j2
+++ b/roles/registry/templates/registry-compose.yml.j2
@@ -11,10 +11,13 @@
registry-mirror:
image: registry:2.4.0
container_name: registry-mirror
+ environment:
+ - "STANDALONE=false"
+ - "MIRROR_SOURCE=https://registry-1.docker.io"
+ - "MIRROR_SOURCE_INDEX=https://index.docker.io"
volumes:
- /docker-registry-mirror/registry:/var/lib/registry/docker/registry
- /docker-registry-mirror/conf:/conf
- command: serve /conf/config.yml
ports:
- "5001:5000"
restart: unless-stopped