Compare commits

..

3 Commits

Author SHA1 Message Date
85ffa579e4 Merge pull request 'debug' (#2) from debug into main
Reviewed-on: #2
2025-11-05 17:20:34 +00:00
5fbbd16462 fix: add proper registry configuration
- Add valid config.yml for registry
- Mount config file in docker-compose.yml
- Fix configuration parsing error
2025-11-05 09:18:16 -08:00
8e8489060c feat: add htpasswd support to registry
- Add Dockerfile with apache2-utils
- Update docker-compose to use local build
- Keep setup minimal while enabling password management
2025-11-05 04:41:30 -08:00
3 changed files with 26 additions and 1 deletions

6
Dockerfile Normal file
View File

@@ -0,0 +1,6 @@
FROM registry:2
# Install Apache utilities for htpasswd management
RUN apt-get update && apt-get install -y \
apache2-utils \
&& rm -rf /var/lib/apt/lists/*

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

@@ -2,13 +2,14 @@ version: '3.8'
services: services:
registry: registry:
image: registry:2 build: .
container_name: registry container_name: registry
restart: unless-stopped restart: unless-stopped
expose: expose:
- "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