This image contains the Apache web server with the mod_md plugin, which can be used to derive Let's Encrypt certificates.
| Tag | Ubuntu | apache | mod_md | Image Size |
|---|---|---|---|---|
0.0.2 (latest) | 14.04.5 | 2.4.34 | 1.1.16 | 434 MB |
0.0.1 | 14.04.5 | 2.4.29 | 1.0.3 | 431 MB |
Pull the image:
docker pull boldt/ubuntu-apache2-mod_md
Use the image (remark the placeholder PATH):
docker run \
--rm \
-d \
--name ubuntu-apache2-mod_md \
-p 80:80 \
-p 443:443 \
-v /PATH/var/www/test.dennis-boldt.de/:/var/www/test.dennis-boldt.de/ \
-v /PATH/etc/apache2/sites-enabled/test.dennis-boldt.de.conf:/etc/apache2/sites-enabled/test.dennis-boldt.de.conf \
-v /PATH/md/:/etc/apache2/md/ \
boldt/ubuntu-apache2-mod_md
An example configuration for test.dennis-boldt.de.conf can be found on github (see above).
Even the certs are renewed automatically, the configuration still needs to be reloaded manually. We do this with a cronjob (crontab -e):
# Runs the reload each sunday at midnight
0 0 * * 0 docker exec -it ubuntu-apache2-mod_md /etc/init.d/apache2 reload
(For own documentation)
docker build -t boldt/ubuntu-apache2-mod_md .
# Tag
docker tag boldt/ubuntu-apache2-mod_md boldt/ubuntu-apache2-mod_md:0.0.2
# Push
docker push boldt/ubuntu-apache2-mod_md:latest
docker push boldt/ubuntu-apache2-mod_md:0.0.2
Content type
Image
Digest
Size
156.5 MB
Last updated
over 7 years ago
docker pull boldt/ubuntu-apache2-mod_md