This docker image is based on nginix 1.15.6
, which itself is based on debian-slim
(which is version 9 AKA Stretch).
It provides the following:
80
It also has access logging turned on by default, and this is piped through to the docker logs interface.
The intention is that this container will be used to serve up static content and WUIs securely.
docker run -d -p <Port to expose Nginx>:80 -e CONTENT_URL=<Path to READ ONLY Minio bucket with content> docker_wui:latest -n <container name>
docker cp <path to files to copy>/. <container image ID or name>:/usr/share/nginx/html/
db-utils
NO LONGER SUPPORTED
docker cp <path to secrets file> <container image ID or name>:/tmp/
docker exec <container image ID or name> PYTHONPATH=/usr/share/nginx/db-utils python3 /home/nginx/db-utils/bin/minio_bucker_dir_sync.py -s minio://<bucket name> -c <city classification> -d /usr/share/nginx/html/<any additional path goes here> -x /tmp/secrets.json
refresh.sh
CONTENT_URL
, pointing to a READ ONLY minio bucket with the content.docker exec -it <container ID/name> sh -c "/refresh.sh"
docker exec -it <container ID/name> sh -c "/refresh.sh CONTENT_URL CONTENT_DIR"
docker logs <container ID or name>