fix: add proper registry configuration

- Add valid config.yml for registry
- Mount config file in docker-compose.yml
- Fix configuration parsing error
This commit is contained in:
2025-11-05 09:18:16 -08:00
parent 8e8489060c
commit 5fbbd16462
2 changed files with 19 additions and 0 deletions

18
config.yml Normal file
View File

@@ -0,0 +1,18 @@
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
filesystem:
rootdirectory: /var/lib/registry
http:
addr: :5000
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3

View File

@@ -9,6 +9,7 @@ services:
- "5000" - "5000"
volumes: volumes:
- registry-data:/var/lib/registry - registry-data:/var/lib/registry
- ./config.yml:/etc/docker/registry/config.yml
networks: networks:
- registry-network - registry-network