A dockerized certbot image customized for usage in YaVende.com stack.
2.3K
This repo hosts the code for an docker image that bootstrap a containr with certbot-auto and an elixir executable yavende_certbot that serves as a wrapper aroud the latter.
Got to use something like elixir because I needed to pass a flag -d domain to certbot-auto certonly for each domain in an splited environment variable $DOMAINS. Doing that with bash proved to be a pain in the arse.
The final purpose of this project is to provide an automated method to provide SSL certificates for mulitple domains using the excellent letsencrypt and it's CLI tool certbot-auto.
This image is meant to be used with docker-compose.
services:
certbot:
image: yavende/certbot:latest
environment:
- WEBROOT_PATH=/var/www/acme_challenge
- [email protected]
- DOMAINS=yavende.com, api.yavende.com, admin.yavende.com
volumes:
- acme_challenge:/var/www/acme_challenge
The image building is automated via DockeHub and Github webhook, so just pushing changes to a tag or master will trigger the building.
However, for development you may want to build the image locally. Modify the CLI at lib/cli.ex. Then build the executable and the docker image:
TAG=latest ./build
Content type
Image
Digest
Size
274 MB
Last updated
over 9 years ago
docker pull yavende/certbot