Code for a simple container with Apache httpd fancy index configured
The container could remove the data in the volume, please mount the volume in read only adding :ro at the end of the volume statement.
If you want to use this container you must build the Dockerfile with the content of this repository or use the pushed image to DockerHub
CONTAINER ENGINE | OS | WEBSERVER |
---|---|---|
You need the next tools to use this container:
* GIT Client
* Docker service
* Docker build tools
You must mount a volume to show over the fancy index, PATH_TO_MOUNT in the instructions
You must pass a port to remote access to the container, EXTERNAL_PORT in the instructions
git clone https://github.com/rdcarrera/alpine-apache2-fancy.git
cd alpine-apache2-fancy
docker build -t example/tag:0.1 .
docker run -d --name alpine-apache2-fancy -v PATH_TO_MOUNT:/fancy/mount:ro -p EXTERNAL_PORT:8080 example/tag:0.1
Instruction to run container from docker DockerHub ![drawing](https://camo.githubusercontent.com/a039ddefc449bc031ba1f2dce4ab3a2ebacc5561094a7767713ba09534efacf8/68747470733a2f2f696d6167652e666c617469636f6e2e636f6d2f69636f6e732f7376672f32332f32333731342e737667)
docker run -d --name alpine-apache2-fancy -v PATH_TO_MOUNT:/fancy/mount:ro -p EXTERNAL_PORT:8080 rdcarrera/alpine-apache2-fancy
If you want to use a custom logo you've' to mount the next volume:
-v /path/to/your/logo.png:/fancy/html/logo/logo.png
Arrow logo taken from: https://www.flaticon.com/free-icon/up-arrow_23714