This image is ACME client to manage SSL keys for single web site in dockerized environment.
##Features
##Configuration parameters Configuration parameters must be passed to container via environment variables
Container must be configured to pass docker socket in and (obviously) to have web server root accessible from inside. See example below.
docker create --name cacme-host --restart always --net=host \
-v /data/acme:/data \ #acme data directory - used for logging
-v /data/nginx:/nginx \ #web server root directory
-v /var/run/docker.sock:/var/run/docker.sock \ #allow to run docker inside
-e DOMAINS="host.net www.host.net" \ #first domain will be primary in the cert
-e WEBROOT=/nginx \ #web server root directory
-e KEYPATH=/nginx/conf/host.pem \ #web server SSL configuration should point to these
-e CERTPATH=/nginx/conf/host-cert.pem \
-e SERVER_CONTAINER=cnginx \ #container to restart on cert change
scf37/acme:latest
ACME uses HTTP to validate domain ownership so web server must be configured to serve http://host.net/.well-known/... from webroot.
E.g. for nginx:
location /.well-known {
root /data;
}
Content type
Image
Digest
sha256:347108b12…
Size
169.6 MB
Last updated
over 3 years ago
docker pull scf37/acme