registry: container_name: registry image: registry volumes: - ./registry:/var/lib/registry/docker/registry/v2 - ./registry/auth:/auth environment: - REGISTRY_AUTH=htpasswd - REGISTRY_AUTH_HTPASSWD_REALM=Auth - REGISTRY_AUTH_HTPASSWD_PATH=/auth restart: unless-stopped
|