Add Registry UI
This commit is contained in:
parent
e89af2ce47
commit
15d45f43f6
30
compose/01_registry/config.yaml
Normal file
30
compose/01_registry/config.yaml
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
version: 0.1
|
||||||
|
log:
|
||||||
|
fields:
|
||||||
|
service: registry
|
||||||
|
storage:
|
||||||
|
cache:
|
||||||
|
blobdescriptor: inmemory
|
||||||
|
filesystem:
|
||||||
|
rootdirectory: /var/lib/registry
|
||||||
|
delete:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
|
auth:
|
||||||
|
htpasswd:
|
||||||
|
realm: Registry Realm
|
||||||
|
path: /auth/htpasswd
|
||||||
|
http:
|
||||||
|
addr: :5000
|
||||||
|
headers:
|
||||||
|
Access-Control-Expose-Headers: ['Docker-Content-Digest']
|
||||||
|
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
|
||||||
|
Access-Control-Allow-Origin: ['https://registry-ui.tobiasmanske.de']
|
||||||
|
Access-Control-Allow-Credentials: [true]
|
||||||
|
Access-Control-Allow-Headers: ['Authorization', 'Accept']
|
||||||
|
X-Content-Type-Options: [nosniff]
|
||||||
|
health:
|
||||||
|
storagedriver:
|
||||||
|
enabled: true
|
||||||
|
interval: 10s
|
||||||
|
threshold: 3
|
@ -12,13 +12,32 @@ services:
|
|||||||
image: 'registry:2'
|
image: 'registry:2'
|
||||||
networks:
|
networks:
|
||||||
- gateway
|
- gateway
|
||||||
environment:
|
- backend
|
||||||
REGISTRY_AUTH: htpasswd
|
|
||||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
|
||||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
|
||||||
volumes:
|
volumes:
|
||||||
- registry_data:/var/lib/registry
|
- registry_data:/var/lib/registry
|
||||||
- ./htpasswd:/auth/htpasswd:ro,z
|
- ./htpasswd:/auth/htpasswd:ro,z
|
||||||
|
- ./config.yaml:/etc/docker/registry/config.yml:ro,z
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
image: joxit/docker-registry-ui:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- registry
|
||||||
|
environment:
|
||||||
|
- DELETE_IMAGES=true
|
||||||
|
- REGISTRY_TITLE=My Private Docker Registry
|
||||||
|
- NGINX_PROXY_PASS_URL=http://registry:5000
|
||||||
|
- SINGLE_REGISTRY=true
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.registryui.rule=Host(`registry-ui.tobiasmanske.de`)"
|
||||||
|
- "traefik.http.routers.registryui.entryPoints=websecure"
|
||||||
|
- "traefik.http.services.registryui.loadbalancer.server.port=80"
|
||||||
|
- "com.centurylinklabs.watchtower.scope=update"
|
||||||
|
networks:
|
||||||
|
- gateway
|
||||||
|
- backend
|
||||||
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
registry_data:
|
registry_data:
|
||||||
@ -26,4 +45,6 @@ volumes:
|
|||||||
networks:
|
networks:
|
||||||
gateway:
|
gateway:
|
||||||
external: true
|
external: true
|
||||||
|
backend:
|
||||||
|
internal: true
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user