This is an example of how to get certbot working in a simple reverse proxy configuration.
- CERTBOT_EMAIL = used for certbot email.
- DOMAIN_NAME = your domain name.
- You definitely want to inspect nginx.conf, and add stuff according to your usecase
- Add it to your docker-compose file like so.
services:
...
your-service:
build:
context: .
dockerfile: Dockerfile_nginx_certbot
environments:
- [email protected]
- DOMAIN_NAME=foo.bar.com
...