Registry - andreydiveev/wiki GitHub Wiki

version: '2'
services:
  registry:
    image: registry:2
    environment:
      REGISTRY_AUTH: htpasswd
      REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
      REGISTRY_AUTH_HTPASSWD_REALM: Registry
      REGISTRY_STORAGE_DELETE_ENABLED: 'true'
    volumes:
    - /opt/data/registry/auth:/auth
    - /opt/registry/data:/var/lib/registry
    labels:
      rap.port: '5000'
      rap.le_host: registry.example.org
      rap.client_max_body_size: 1000m
      rap.host: registry.example.org
  web:
    image: andrezaycev/docker-registry-manager
    environment:
      MANAGER_LOG_LEVEL: warn
      MANAGER_PORT: '8080'
      MANAGER_REGISTRIES: /app/registries.yml
    volumes:
    - /opt/data/registry/manager/registries.yml:/app/registries.yml
    labels:
      rap.port: '8080'
      rap.le_host: registry-manager.example.org
      rap.host: registry-manager.example.org