Initial version.
This commit is contained in:
31
README.md
31
README.md
@@ -1,5 +1,30 @@
|
||||
# docker-www
|
||||
|
||||
www.vostan.org
|
||||
drive.vostan.org
|
||||
and etc
|
||||
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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user