aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorTommy Carpenter <tommy@research.att.com>2018-06-29 16:08:34 -0400
committerTommy Carpenter <tommy@research.att.com>2018-07-02 10:46:01 -0400
commit0d2fdb1d8bd120c2966365f0d90e63c35951e667 (patch)
tree90c6e82951e9e32527f477d126cb281c2c3a110e /Dockerfile
parent8984604d52cd9354897b48b783dfd8610c5c5758 (diff)
Add HTTPS support.
Change-Id: I3a2f950c5031878c53b98f66450d859c007be77d Issue-ID: DCAEGEN2-562 Signed-off-by: Tommy Carpenter <tommy@research.att.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index df5a4f0..ae2f079 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -10,4 +10,14 @@ RUN pip install /app/app
RUN mkdir -p /opt/logs/
-ENV LISTEN_PORT 10000
+# create the dir for the ssl certs
+RUN mkdir -p /etc/nginx/ssl
+
+COPY nginxhttps.conf /etc/nginx/conf.d/nginxhttps.conf
+
+ENV LISTEN_PORT 10000
+EXPOSE 443
+EXPOSE 10000
+
+#this is a registrator flag that tells it to ignore 80 from service discovery. Nothing is listening on 80, but the parent Dockerfile here exposes it. This container is internally listening on 10000 and 443.
+ENV SERVICE_80_IGNORE true