diff --git a/README.md b/README.md index dcae490..d9bdfcc 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ A collection of delicious docker recipes. - [x] minidlna - [x] mpd :musical_note: - [x] murmur +- [x] node-media-server-arm :camera: :cn: - [x] openmeetings :camera: - [x] paddle-ocr - [x] plex :moneybag: diff --git a/node-media-server/arm/Dockerfile b/node-media-server/arm/Dockerfile new file mode 100644 index 0000000..1713000 --- /dev/null +++ b/node-media-server/arm/Dockerfile @@ -0,0 +1,17 @@ +# +# Dockerfile for node-media-server +# + +FROM node:lts-alpine +MAINTAINER EasyPi Software Foundation + +WORKDIR /opt/nms + +RUN npm install node-media-server + +COPY app.js /opt/nms + +EXPOSE 1935 8000 + +ENTRYPOINT ["sh", "-c"] +CMD ["node app.js"] diff --git a/node-media-server/arm/app.js b/node-media-server/arm/app.js new file mode 100644 index 0000000..f20e2dd --- /dev/null +++ b/node-media-server/arm/app.js @@ -0,0 +1,23 @@ +const NodeMediaServer = require('node-media-server'); + +const config = { + rtmp: { + port: 1935, + chunk_size: 60000, + gop_cache: true, + ping: 30, + ping_timeout: 60 + }, + http: { + port: 8000, + allow_origin: '*' + }, + auth: { + api : true, + api_user: 'admin', + api_pass: 'admin', + }, +}; + +var nms = new NodeMediaServer(config) +nms.run(); diff --git a/node-media-server/arm/docker-compose.yml b/node-media-server/arm/docker-compose.yml new file mode 100644 index 0000000..ed68c55 --- /dev/null +++ b/node-media-server/arm/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3.8" +services: + node-media-server: + image: easypi/node-media-server-arm + ports: + - "1935:1935" + - "8000:8000" + restart: unless-stopped