🐳 Dockerfile for Let's Encrypt certbot + httpd server.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile
LICENSE
README.md

README.md

docker-certbot-server

Description

Dockerfile for Let's Encrypt certbot + httpd server.

Installation

docker pull felixsanz/certbot-server

Usage

You should create a docker volume and share it with both containers, the certbot-server that populates the volume with certificates, and the container that is going to make use of them.

Start the container in the background to spawn the server that will listen to Let's Encrypt requests.

docker run --rm -d --name certbot-server --volume certs:/etc/letsencrypt felixsanz/certbot-server:latest

Creation

docker exec certbot-server certbot certonly --webroot --webroot-path /srv/http -d example.com -d www.example.com --email me@example.com --agree-tos --quiet

Pass --staging --break-my-certs for testing purposes.

Renewal

docker exec certbot-server certbot renew