Files
docker-www/README.md
Vahagn Khachatryan 77eb5180e1 Add *.app.vostan.org servers.
Change configuration name. Now configuration name is the reversed site
name.
Add all those configuration to https certificate.
2025-05-21 23:33:17 +01:00

33 lines
728 B
Markdown

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