From 0154b594dc054fd0882ed8c3321bdbab763add00 Mon Sep 17 00:00:00 2001 From: goatie999 Date: Mon, 27 Apr 2020 23:48:28 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a53754..3c3c9f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,6 +19,27 @@ RUN echo "ENABLED=1" >> /etc/default/stunnel4 # Expose services to host EXPOSE 1935 -# Initialise Services -CMD ["stunnel, "/etc/stunnel/stunnel.conf"] +# Forward logs to Docker +RUN ln -sf /dev/stdout /var/log/nginx/access.log && \ + ln -sf /dev/stderr /var/log/nginx/error.log && \ + ln -sf /dev/stdout /var/log/stunnel4/stunnel.log + +#Setup Streaming Services Details +#Facebook +ENV FACEBOOK_URL rtmp://localhost:19350/rtmp/ +ENV FACEBOOK_KEY "" + +#Restream.io +ENV RESTREAM_URL rtmp://live.restream.io/live/ +ENV RESTREAM_KEY "" + +COPY entrypoint.sh /dentrypoint.sh + +RUN chmod +x /entrypoint.sh + +EXPOSE 1935 + +ENTRYPOINT ["entrypoint.sh"] + +# Initialise nginx CMD ["nginx", "-g", "daemon off;"]