830 B
830 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 run --rm certbot certonly --webroot --webroot-path /var/www/certbot/ --dry-run -d www.vostan.org -d drive.vostan.org
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