Initial version.

This commit is contained in:
2024-02-15 23:54:15 +00:00
parent 856ce400b9
commit 54147eb99c
8 changed files with 260 additions and 3 deletions

View File

@@ -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
```