version: '3' services: registry: container_name: "docker-registry" image: registry:2 volumes: - ./data/reg_data:/var/lib/registry/ - ./data/reg_auth:/auth environment: - "REGISTRY_AUTH=htpasswd" - "REGISTRY_AUTH_HTPASSWD_REALM=Registry" - "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpassword" ports: - 5000:5000 restart: always