From fa5b73ba15628193b11f29e68cf7d543c3b1e612 Mon Sep 17 00:00:00 2001 From: PA4KEV Date: Tue, 7 Feb 2023 22:44:23 +0100 Subject: [PATCH] Update README with Letsencrypt commands --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d287266..7d6b534 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,10 @@ `docker pull pa4kev/portfolio-reactjs-full` -`docker run -d --name react -p 80:80 pa4kev/portfolio-reactjs-full` +if required, run certbot to set the certificates. +`docker run -it --rm -p 80:80 --name certbot -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly --standalone --break-my-certs -d matsubara.nl -d www.matsubara.nl` + +`docker run -d --name react -p 80:80 -p 443:443 -v /etc/letsencrypt:/etc/letsencrypt -v /var/lib/letsencrypt:/var/lib/letsencrypt -v /var/www/html:/var/www/html pa4kev/portfolio-reactjs-full` ---