h5ai is a modern file indexer for HTTP web servers with focus on your files.
See the demo directory with most features enabled.
docker run -it --rm -p 80:80 -v '/pass/to/share/dir:/var/www' tumayouzi/h5ai-dockerYou can now point your webbrowser to this URL:
http://localhost/
This is a rather common setup following docker's conventions:
-itwill run an interactive session that can be terminated with CTRL+C--rmwill run a temporary session that will make sure to remove the container on exit-v {AnyDirectory}:/var/wwwwill mount the given directory as the base directory for the browsable directory index-p {OutsidePort}:80will bind the webserver to the given outside porttumayouzi/h5ai-dockerthe name of this docker image
If you want to use docker-compose, use docker-compose.yml.
command:
dokcer-compose up -dMIT.