Add zot OCI image registry

This commit is contained in:
JuliusFreudenberger 2025-03-24 13:12:16 +02:00
parent b2c7932bf4
commit 1f2b17e2ef
3 changed files with 76 additions and 0 deletions

7
zot-registry/README.md Normal file
View file

@ -0,0 +1,7 @@
# zot
OCI-native container image registry, simplified
## Important step when deploying
Make necessary adaptions to the config file which is provided as an example.
Add it to the config volume as `config.yaml`.

View file

@ -0,0 +1,46 @@
http:
accessControl:
adminPolicy:
actions:
- read
- create
- update
- delete
users:
- <admin>
repositories:
'**':
defaultPolicy:
- read
address: 0.0.0.0
auth:
openid:
providers:
oidc:
clientid: <client_id>
clientsecret: <client_secret>
issuer: https://git.jfreudenberger.de/
name: Forgejo
scopes:
- openid
- profile
- email
- groups
compat:
- docker2s2
externalUrl: https://zot.jfreudenberger.de
port: "5000"
log:
level: info
storage:
dedupe: true
gc: true
rootDirectory: /var/lib/registry
extensions:
scrub:
enable: true
interval: 24h
search:
enable: true
ui:
enable: true

View file

@ -0,0 +1,23 @@
version: '3'
services:
zot:
image: ghcr.io/project-zot/zot:${zot_version:-latest}
restart: unless-stopped
environment:
- VIRTUAL_HOST=zot.jfreudenberger.de
- VIRTUAL_PORT=5000
- LETSENCRYPT_HOST=zot.jfreudenberger.de
volumes:
- registry-data:/var/lib/registry
- registry-config:/etc/zot
networks:
- webproxy
volumes:
registry-data:
networks:
webproxy:
external: true
name: webproxy