diff --git a/templates/zot/config.json.j2 b/templates/zot/config.json.j2 index 18262a7..01d5a24 100644 --- a/templates/zot/config.json.j2 +++ b/templates/zot/config.json.j2 @@ -1,7 +1,23 @@ { "distSpecVersion": "1.1.1", "storage": { - "rootDirectory": "/var/lib/zot" + "rootDirectory": "/var/lib/zot", + "gc": true, + "gcDelay": "1h", + "gcInterval": "24h", + "retention": { + "delay": "24h", + "policies": [ + { + "repositories": ["**"], + "deleteReferrers": true, + "deleteUntagged": true, + "keepTags": [{ + "pulledWithin": "60d" + }] + } + ] + } }, "http": { "address": "127.0.0.1",