Sign inSign up

boldt/ubuntu-apache2-mod_md

By boldt

Updated over 7 years ago

Ubuntu with apache2 + mod_md

Image
0

348

boldt/ubuntu-apache2-mod_md repository overview

Ubuntu with apache2 + mod_md

Gitlab Docker Hub Docker Pulls

Description

This image contains the Apache web server with the mod_md plugin, which can be used to derive Let's Encrypt certificates.

Versions

TagUbuntuapachemod_mdImage Size
0.0.2 (latest)14.04.52.4.341.1.16434 MB
0.0.114.04.52.4.291.0.3431 MB

Use this image

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).

Cronjob

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

Build and push

(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

Tag summary

Content type

Image

Digest

Size

156.5 MB

Last updated

over 7 years ago

docker pull boldt/ubuntu-apache2-mod_md