Add docker files

This commit is contained in:
Stefan Ritter 2025-01-03 19:53:27 +01:00
parent feab9af991
commit 2f7017222a
4 changed files with 38 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk add nginx nginx-mod-rtmp
COPY nginx.conf /etc/nginx
CMD ["/usr/sbin/nginx"]

3
build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
docker build -t nginx-rtmp .

6
docker-compose.yml Normal file
View File

@ -0,0 +1,6 @@
services:
nginx:
image: nginx-rtmp
restart: always
expose:
- 1935:1935

22
nginx.conf Normal file
View 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;
}
}
}