h5ai is a modern web server index. This docker image makes it trivially easy to spin up a webserver and start sharing your files through the web.
The recommended way to run this container looks like this:
docker run -d \
--restart=always \
--name h5ai \
-p 80:80 \
-v $PWD:/var/www \
kekel87/docker-h5ai
You can now point your webbrowser to this URL:
http://localhost/
You can alsow override h5ai options.json file :
docker run -d \
--restart=always \
--name h5ai \
-p 80:80 \
-v $PWD:/var/www \
-v $PWD/your-options.json:/usr/share/h5ai/_h5ai/private/conf/options.json \
kekel87/docker-h5ai
You can alsow put a _h5ai.header.html/_h5ai.footers.html
file in your mounted folder to display personal header and footers.
Fast build & test command :
docker build -t kekel87/docker-h5ai . && \
docker stop h5ai && docker rm h5ai && \
docker run -d \
--restart=always \
--name h5ai \
-p 80:80 \
-v $PWD:/var/www \
kekel87/docker-h5ai && \
docker logs h5ai -f
Thx :