From 0d2fdb1d8bd120c2966365f0d90e63c35951e667 Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Fri, 29 Jun 2018 16:08:34 -0400 Subject: Add HTTPS support. Change-Id: I3a2f950c5031878c53b98f66450d859c007be77d Issue-ID: DCAEGEN2-562 Signed-off-by: Tommy Carpenter --- Dockerfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Dockerfile') 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 -- cgit 1.2.3-korg