2022-06-18 14:12:12 +02:00
|
|
|
---
|
|
|
|
services:
|
|
|
|
registry:
|
|
|
|
container_name: registry
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.registry.rule=Host(`registry.tobiasmanske.de`)"
|
|
|
|
- "traefik.http.routers.registry.entryPoints=websecure"
|
|
|
|
- "traefik.http.services.registry.loadbalancer.server.port=5000"
|
|
|
|
image: 'registry:2'
|
|
|
|
networks:
|
|
|
|
- gateway
|
2022-06-25 14:38:17 +02:00
|
|
|
- backend
|
2022-06-18 14:12:12 +02:00
|
|
|
volumes:
|
|
|
|
- registry_data:/var/lib/registry
|
|
|
|
- ./htpasswd:/auth/htpasswd:ro,z
|
2022-06-25 14:38:17 +02:00
|
|
|
- ./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"
|
|
|
|
networks:
|
|
|
|
- gateway
|
|
|
|
- backend
|
|
|
|
|
2022-06-18 14:12:12 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
registry_data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
gateway:
|
|
|
|
external: true
|
2022-06-25 14:38:17 +02:00
|
|
|
backend:
|
|
|
|
internal: true
|
2022-06-18 14:12:12 +02:00
|
|
|
...
|