services: registry: image: registry:2 container_name: registry restart: unless-stopped environment: - REGISTRY_STORAGE_DELETE_ENABLED=true ports: - "${HTTP_PORT:-5050}:5000" volumes: - ${DATA_PATH:-/srv/registry}:/var/lib/registry # Basic auth. Create it with: # docker run --rm httpd:alpine htpasswd -Bbn user pass > htpasswd # then uncomment the mount and the three REGISTRY_AUTH_* vars above. # - ./htpasswd:/auth/htpasswd:ro registry-ui: image: joxit/docker-registry-ui:latest container_name: registry-ui restart: unless-stopped depends_on: - registry environment: - SINGLE_REGISTRY=true - REGISTRY_TITLE=${REGISTRY_TITLE:-Homelab Registry} - NGINX_PROXY_PASS_URL=http://registry:5000 - DELETE_IMAGES=true ports: - "${UI_PORT:-5080}:80"