We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376d1b2 commit f9a5143Copy full SHA for f9a5143
Dockerfile
@@ -1,11 +1,11 @@
1
FROM tiangolo/nginx-rtmp
2
3
+COPY streamer.conf /etc/nginx/nginx.conf
4
+COPY stunnel.conf /etc/stunnel/stunnel.conf
5
+
6
RUN apt-get update && \
7
apt-get install -y stunnel4 ca-certificates && \
8
mkdir -p /etc/stunnel && \
9
chmod 600 /etc/stunnel/stunnel.conf
10
-COPY streamer.conf /etc/nginx/nginx.conf
-COPY stunnel.conf /etc/stunnel/stunnel.conf
-
11
CMD sh -c "stunnel /etc/stunnel/stunnel.conf && nginx -g 'daemon off;'"
docker-compose.yml
@@ -4,6 +4,7 @@ services:
nginx:
build: .
image: tiangolo/nginx-rtmp
+ restart: unless-stopped
ports:
- "1935:1935"
volumes:
0 commit comments