refactor: restructure registry with auth and agent guidelines

- Add built-in authentication with Apache utils
- Add AGENTS.md for coding guidelines
- Enhance security with authentication enabled by default
- Remove unnecessary template files
- Simplify configuration and setup process
This commit is contained in:
2025-11-05 04:11:21 -08:00
parent f4611b4d23
commit d8bfde5796
9 changed files with 106 additions and 187 deletions

View File

@@ -2,13 +2,15 @@ version: '3.8'
services:
registry:
image: registry:2
build: .
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
@@ -28,7 +30,7 @@ services:
- 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:-false}
- REGISTRY_SECURED=${REGISTRY_SECURED:-true}
- CATALOG_ELEMENTS_LIMIT=${CATALOG_ELEMENTS_LIMIT:-1000}
depends_on:
- registry
@@ -41,4 +43,6 @@ networks:
volumes:
registry-data:
driver: local
registry-auth:
driver: local