- 80 port is accessible
- Set
server name
indata/nginx/app.conf
- Edit
domains
andemail
ininit-letsencrypt.sh
(Same as 1.) sudo chmod +x init-letsencrypt.sh
sudo ./init-letsencrypt.sh
sudo docker-compose up -d
sudo chmod 755 data/certbot/conf/archive
sudo chmod 664 data/certbot/conf/live/<domain_name>/privkey.pem
cert: data/certbot/conf/live/<domain_name>/fullchain.pem
key: data/certbot/conf/live/<domain_name>/privkey.pem
Mount the whole directory (nginx-certbot/data/certbot/
)
like: nginx-certbot/data/certbot/:/etc/certbot
(in docker-compose)