blob: 8752f068e963ad058484cd63a857f7a7c1037e64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/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
|