hiveqm-webclient including docker run script with nginx
Having all files in the location /home/pi/mqtt-webclient
simply run run_nginx_docker_container_mqtt_client.sh
You will have to manipulate the script in order to mount the correct path for persistence.
There are 5 volumes to map:
Necessary:
--volume /home/pi/mqtt-webclient/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
<-- nginx configuration, found here
--volume /home/pi/mqtt-webclient/nginx/conf.d/:/etc/nginx/conf.d/:ro
<-- nginx additional configuration, found here
--volume /home/pi/mqtt-webclient/app:/usr/share/nginx/html:ro
<-- the actual app mapping into the container
Optional:
--volume /home/pi/mqtt-webclient/logs/error.log:/var/log/nginx/error.log
<-- error log of nginx, useful to troubleshoot
--volume /home/pi/mqtt-webclient/logs/access.log:/var/log/nginx/access.log
<-- access log of nginx, also useful to troubleshoot