Using makefile
make init
login: register password: password
Using htpasswd
htpasswd -c -B -b </path/to/htpasswd> <user_name> <password>
Show catalogs
REGISTRY=localhost:5000 make push
docker login -u registry -p password localhost:5000
with ansible in provisioning folder cd provisioning setup ssh host hosts.yml.dist > hosts.yml Install docker | certbot in server
make server
make authorize
change 152.67.70.96 > your server address
HOST=152.67.70.96 PORT=22 make deploy HTPASSWD_FILE=htpasswd
ssh deploy@152.67.70.96 -t "docker system prune -af"