diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..46df39e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.7 + +RUN apk add --no-cache openssl ca-certificates wget unzip nginx nginx-mod-rtmp ffmpeg + +VOLUME [ "/stream" ] + +CMD nginx -g 'daemon off;' diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5cc776f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +version: '3' + +services: + server: + build: ./ + ports: + - 80:80 + - 1935:1935 + volumes: + - ./nginx.conf:/etc/nginx/nginx.conf + - ./srv:/srv +