diff --git a/templates/zot/config.json.j2 b/templates/zot/config.json.j2 index 85c30b0..164019b 100644 --- a/templates/zot/config.json.j2 +++ b/templates/zot/config.json.j2 @@ -1,7 +1,27 @@ { "distSpecVersion": "1.1.1", "storage": { - "rootDirectory": "/var/lib/zot" + "rootDirectory": "/var/lib/zot", + "subPaths": { + "/dockerhub": { + "rootDirectory": "/var/lib/zot/dockerhub", + "mirror": { + "registries": ["https://registry-1.docker.io"], + "remoteURL": "https://registry-1.docker.io", + "onDemand": true, + "tlsVerify": true + } + }, + "/ghcr": { + "rootDirectory": "/var/lib/zot/ghcr", + "mirror": { + "registries": ["https://ghcr.io"], + "remoteURL": "https://ghcr.io", + "onDemand": true, + "tlsVerify": true + } + } + } }, "http": { "address": "127.0.0.1",