Add docker files
This commit is contained in:
parent
feab9af991
commit
2f7017222a
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add nginx nginx-mod-rtmp
|
||||
|
||||
COPY nginx.conf /etc/nginx
|
||||
|
||||
CMD ["/usr/sbin/nginx"]
|
6
docker-compose.yml
Normal file
6
docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
services:
|
||||
nginx:
|
||||
image: nginx-rtmp
|
||||
restart: always
|
||||
expose:
|
||||
- 1935:1935
|
22
nginx.conf
Normal file
22
nginx.conf
Normal file
@ -0,0 +1,22 @@
|
||||
load_module modules/ngx_rtmp_module.so;
|
||||
|
||||
user root root;
|
||||
worker_processes 2;
|
||||
pid /var/run/nginx.pid;
|
||||
daemon off;
|
||||
|
||||
events {
|
||||
worker_connections 2000;
|
||||
}
|
||||
|
||||
rtmp {
|
||||
server {
|
||||
listen 1935;
|
||||
chunk_size 8192;
|
||||
|
||||
application live {
|
||||
live on;
|
||||
record off;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user