Initial
This commit is contained in:
commit
26b7e62a81
2 changed files with 48 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
auth/
|
||||
.env
|
46
compose.yml
Normal file
46
compose.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
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
|
||||
|
Loading…
Reference in a new issue