This is a static files server based on nginx-unprivileged docker image. It is configured to automatically serve all your docker volumes named like ANYTHING_static
in the URL http://localhost/ANYTING
.
- A linux environment (for running the scripts)
- Docker >= 19.03.13
The run.sh
script detects all static file volumes and creates configuration files inside locations/
that will be included into the Nginx configuration file. Then it builds the container and runs it attaching and serving the detected docker volumes.
Simply run the bash script:
./run.sh
When stopping the container, plase use stop.sh
script:
./stop.sh