On the machine hosting the registry, edit docker-compose.yml with the name of the machine and then run :
docker-compose.yml
cd self-signed ./generate-certs.sh <machine-name> docker-compose up -d