You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can update the ssl_certificate config if you like, but you should make sure that you have the file. You can check the file path in docker-compose.yml
The path in nginx.conf should be the container path, not the host path.
change the volumns config /cert/yourdomain.com:/cert. The path /cert/yourdomain.com and certs file should exist in your host machine, and the certs file'name should be as the same as ssl_certificate, ssl_certificate_key config in the nginx.conf
/cert/yourdomain.com is the host path
volumes:
- /cert/yourdomain.com:/cert # see ssl_certificate, ssl_certificate_key config in nginx.conf under nginx-conf dir. make sure you have the file
example
If you change the /cert behind :, you need to change the nginx.conf too.
make sure the host path /etc/letsencrypt/yourdomain.com is not the symbolic links
volumes:
- /etc/letsencrypt/yourdomain.com:/cert # see ssl_certificate, ssl_certificate_key config in nginx.conf under nginx-conf dir. make sure you have the file
Start
sudo docker-compose up -d
# check the service
sudo docker-compose ps
# check the log
sudo docker-compose logs -f
Enjoy
enjoy it by your url, like https://yourdomain.com. The url should be configured in the nginx.conf.