Change configuration name. Now configuration name is the reversed site name. Add all those configuration to https certificate.
728 B
728 B
docker-www
Docker compose to host
- www.vostan.org
- drive.vostan.org
First Run
To generate certificates first time comment all configurations other than the default.conf in docker-compose.yml and bring up the web server. This is because SSL servers will not start without certificates. We need to bring up servers for certbot challenges. Now launch certbot:
docker-compose up -d
./cert.sh
If dry run is successful then generate certificates removing --dry-run. Make sure to uncomment configurations and restart nginx.
docker-compose restart
or
docker-compose exec www nginx -s reload
Renew Certificates
docker-compose run --rm certbot renew
docker-compose exec www nginx -s reload