Docker-Compose file for creating a basic Docker Registry on a Rancher instance.
- Create registry folder:
mkdir /registry/
- Save credentials
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
- Copy docker-compose.yml file into Rancher. Enjoy.