step 1:
create virtual host listen http
step 2:
run command
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d sample.local --agree-tos -m your-email@local
step 3:
run command
docker-compose run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ -d sample.local
step 4:
update virtual host add listen https
note:
--reload nginx
docker-compose exec reverse_proxy nginx -s reload
--add user basic auth
docker run --entrypoint htpasswd httpd:2 -Bbn user pass > auth/htpasswd
--create random password
openssl rand -base64 32
--Garbage collection
docker-compose exec registry bin/registry garbage-collect /etc/docker/registry/config.yml