This Docker image generates a high-performance nginx server to use as a reverse-proxy web server for hosted web-applications.
This container dynamically generates configs using docker-gen for other virtual host web containers.
- Configure image in the
settings.shfile. - If you have static sites you want to add, you can add their nginx
.config's infs/etc/nginx/conf.d/. Do not name your configdynamic.confas that is what is used by docker-gen.
Run the build.sh file to generate the Docker image hnc-web.
To spawn a temporary container run test.sh.
You can manually start the services via executing /srv/launch.sh.
To deploy a dedicated container run deploy.sh.
The dedicated container will also create a mounted volume which is mounted at /etc/nginx in the container. This volume can be useful if you need to manually backup/restore certs from the /etc/nginx/certs directory in the container.
From here on you can use docker start hnc-web and docker stop hnc-web to control the container.