From 2cb57f8700f96eaddb4543e0d669fdd506e8f688 Mon Sep 17 00:00:00 2001 From: nicco Date: Wed, 27 Jun 2018 20:43:09 +0200 Subject: [PATCH] docker --- Dockerfile | 7 +++++++ docker-compose.yml | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100755 Dockerfile create mode 100644 docker-compose.yml 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 +