This commit is contained in:
2026-09-18 20:07:04 +02:00
parent 958e22734f
commit 442ddf8816
88 changed files with 2501 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
services:
zot:
image: ghcr.io/project-zot/zot-linux-amd64:{{ zot_version }}
restart: unless-stopped
ports:
- "127.0.0.1:{{ zot_port }}:5000"
volumes:
- /opt/zot/config.json:/etc/zot/config.json:ro
- /opt/zot/auth/htpasswd:/etc/zot/htpasswd:ro
- /opt/zot/data:/var/lib/registry
command: serve /etc/zot/config.json
+42
View File
@@ -0,0 +1,42 @@
{
"distSpecVersion": "1.1.1",
"storage": {
"rootDirectory": "/var/lib/registry",
"retention": {
"dryRun": false,
"delay": "24h",
"policies": [
{
"repositories": ["**"],
"deleteReferrers": false,
"deleteUntagged": true,
"keepTags": [
{
"mostRecentlyPushedCount": {{ zot_retention_keep_count }},
"pushedWithin": "{{ zot_retention_keep_within }}"
}
]
}
]
}
},
"http": {
"address": "0.0.0.0",
"port": "5000",
"auth": {
"htpasswd": {
"path": "/etc/zot/htpasswd"
}
},
"accessControl": {
"repositories": {
"**": {
"defaultPolicy": ["read", "create", "update", "delete"]
}
}
}
},
"log": {
"level": "info"
}
}