refactor: simplify registry to basic setup

- Reduce to only registry:2 image
- Remove unnecessary configuration files
- Add basic .gitignore and env.example
- Keep only essential docker-compose configuration
This commit is contained in:
2025-11-05 04:30:59 -08:00
parent d8bfde5796
commit fa2df647c6
7 changed files with 30 additions and 99 deletions

View File

@@ -2,38 +2,13 @@ version: '3.8'
services:
registry:
build: .
image: registry:2
container_name: registry
restart: unless-stopped
expose:
- "5000"
volumes:
- registry-data:/var/lib/registry
- registry-auth:/etc/docker/registry/auth
- ./config.yml:/etc/docker/registry/config.yml
networks:
- registry-network
registry-ui:
image: joxit/docker-registry-ui:latest
container_name: registry-ui
restart: unless-stopped
expose:
- "80"
environment:
- SINGLE_REGISTRY=${SINGLE_REGISTRY:-true}
- REGISTRY_TITLE=${REGISTRY_TITLE:-Docker Registry}
- DELETE_IMAGES=${DELETE_IMAGES:-true}
- SHOW_CONTENT_DIGEST=${SHOW_CONTENT_DIGEST:-true}
- NGINX_PROXY_PASS_URL=${REGISTRY_URL:-http://registry:5000}
- SHOW_CATALOG_NB_TAGS=${SHOW_CATALOG_NB_TAGS:-true}
- CATALOG_MIN_BRANCHES=${CATALOG_MIN_BRANCHES:-1}
- CATALOG_MAX_BRANCHES=${CATALOG_MAX_BRANCHES:-1}
- TAGLIST_PAGE_SIZE=${TAGLIST_PAGE_SIZE:-100}
- REGISTRY_SECURED=${REGISTRY_SECURED:-true}
- CATALOG_ELEMENTS_LIMIT=${CATALOG_ELEMENTS_LIMIT:-1000}
depends_on:
- registry
networks:
- registry-network
@@ -43,6 +18,4 @@ networks:
volumes:
registry-data:
driver: local
registry-auth:
driver: local