#!/bin/bash DATA_PATH=/srv/reporting-portal/data HTPASSWD_PATH=${DATA_PATH}/htpasswd CERTS_PATH=/srv/certs # start the reverse proxy docker run -d --name reverse-proxy \ -p 80:80 \ -p 443:443 \ --restart=always \ -v ${HTPASSWD_PATH}:/etc/nginx/htpasswd \ -v ${PWD}/custom.conf:/etc/nginx/conf.d/custom.conf:ro \ -v ${CERTS_PATH}:/etc/nginx/certs \ -v /var/run/docker.sock:/tmp/docker.sock \ jwilder/nginx-proxy # # to add portals represented by CNAMEs, you must define # a VIRTUAL_HOST environment variable on each container # using: # -e VIRTUAL_HOST=domain.linaro.org # # each portal container must be started AFTER the # nginx-proxy container has started # # example: # # docker run -d --name tempest-ci-webapp \ # -e VIRTUAL_HOST=${WEBAPP_VIRTUAL_HOST} \ # -p 127.0.0.1:8080:8080 \ # --restart=always \ # tempest-ci-webapp