A Docker image for h5ai, a modern HTTP web server indexer.
Built on top of Nginx 1.26+ (Alpine) and PHP 8.3 with Supervisor for process management.
X-Frame-Options, X-Content-Type-Options, X-XSS-Protection enabled).Mount the directory you want to share to /share:
docker container run -d -p 80:80 \
-v /path/to/sharing-file:/share \
pad92/docker-h5ai
To secure the index page and all files under /share, define the username and password using the ENV_U and ENV_P environment variables:
docker container run -d -p 80:80 \
-e ENV_U=admin \
-e ENV_P=mysecretpassword \
-v /path/to/sharing-file:/share \
pad92/docker-h5ai
To override the default options.json file, mount your custom file into /usr/share/h5ai/_h5ai/private/conf/options.json:
docker container run -d -p 80:80 \
-v /path/to/sharing-file:/share \
-v $PWD/options.json:/usr/share/h5ai/_h5ai/private/conf/options.json \
pad92/docker-h5ai
Create a docker-compose.yml file:
services:
h5ai:
image: pad92/docker-h5ai
ports:
- "8888:80"
environment:
- ENV_U=admin
- ENV_P=mysecretpassword
volumes:
- /path/to/sharing-file:/share:ro
restart: unless-stopped
Then start the container:
docker compose up -d
A Makefile is provided to help with local development, testing, and security scans:
make build
make test
make trivy
make clean
See CHANGELOG.md for a detailed history of changes.
Content type
Image
Digest
sha256:f6fbecc03…
Size
79.4 MB
Last updated
about 1 month ago
docker pull pad92/docker-h5ai