-
git clone git@github.com:aleccunningham/docker-registry.git /opt/registry
-
cd /opt/registry && cp /etc/letsencrypt/live/$host/fullchain.pem ./certs/$host.crt
-
cp /etc/letsencrypt/live/$host/privkey.pem ./certs/$host.key
-
REG_PASSWORD=string make htpasswd
-
docker-compose up -d
-
git clone https://github.com/letsencrypt/letsencrypt
-
cd letsencrypt && certbot-auto certonly --standalone --renew-by-default -d $host
Inbound rules:
- SSH/TCP/22
- HTTPS/TCP/443
- HTTP/TCP/80 # For letsencrypt certificates
Outbound rules:
- ICMP
- ALL TCP
- ALL UDP