46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
services:
|
|
registry:
|
|
image: registry:2
|
|
container_name: registry
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data
|
|
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
|
|
REGISTRY_AUTH: htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry
|
|
REGISTRY_AUTH_HTPASSWD_PATH: /auth/registry.password
|
|
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Origin: "[$REGISTRY_URL]"
|
|
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Methods: '[HEAD,GET,OPTIONS,DELETE]'
|
|
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Credentials: '[true]'
|
|
REGISTRY_HTTP_HEADERS_Access-Control-Allow-Headers: '[Authorization,Accept,Cache-Control]'
|
|
REGISTRY_HTTP_HEADERS_Access-Control-Expose-Headers: '[Docker-Content-Digest]'
|
|
volumes:
|
|
- /mnt/raid/registry/data:/data
|
|
- ./auth:/auth
|
|
networks:
|
|
- nginx_proxy
|
|
|
|
registry-ui:
|
|
image: joxit/docker-registry-ui:main
|
|
container_name: registry-ui
|
|
restart: unless-stopped
|
|
environment:
|
|
- SINGLE_REGISTRY=true
|
|
- REGISTRY_TITLE=Docker Registry UI
|
|
- DELETE_IMAGES=true
|
|
- SHOW_CONTENT_DIGEST=true
|
|
- NGINX_PROXY_PASS_URL=http://registry:5000
|
|
- SHOW_CATALOG_NB_TAGS=true
|
|
- CATALOG_MIN_BRANCHES=1
|
|
- CATALOG_MAX_BRANCHES=1
|
|
- TAGLIST_PAGE_SIZE=100
|
|
- REGISTRY_SECURED=false
|
|
- CATALOG_ELEMENTS_LIMIT=1000
|
|
networks:
|
|
- nginx_proxy
|
|
|
|
networks:
|
|
nginx_proxy:
|
|
external: true
|
|
|