dockerage/apache
This is Apache/2.4.7 (Ubuntu:14.04) image with SSL support. It could mount following data volumes at runtime:
By defaults, Apache will use the bundled "snakeoil" cert/key when serving SSL. Obviously this is NOT for production, so you should to mount production certs and keys onto /etc/ssl/ or /etc/apache2/ssl and change the related ssl configurations in the site conf.
Assuming www content at $(pwd)/vol/www/, the below will be sufficient to serve it. Note that many Docker users encourage mounting data from a storage container, rather than directly from the filesyetem.
Run apache container:
# docker run -p 80:80 -p 443:443 -d dockerage/apache
Varify it is running:
# curl http://localhost
or
# curl -k https://localhost
Run apache with www contents under $(pwd)/vol/www/:
# docker run -p 80:80 -p 443:443 -d -v $(pwd)/vol/www/:/var/www dockerage/apache
Run apache with custermized configurations under $(pwd)/vol/apache2/:
# docker run -p 80:80 -p 443:443 -d \
-v $(pwd)/vol/mysite.conf:/etc/apache2/sites-enabled/mysite.conf \
-v $(pwd)/vol/apache2/ssl:/etc/apache2/ssl \
-v $(pwd)/vol/www/:/var/www \
dockerage/apache
docker pull dockerage/apache