registry: restart: always image: registry:2 ports: - 5000:5000 environment: REGISTRY_PROXY_REMOTEURL: https://registry-1.docker.io volumes: - /data/docker/registry:/var/lib/registry