1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

add node-media-server-arm

This commit is contained in:
kev 2021-10-22 11:30:20 +08:00
parent a371d27aca
commit 9f0a01423c
4 changed files with 49 additions and 0 deletions

@ -162,6 +162,7 @@ A collection of delicious docker recipes.
- [x] minidlna - [x] minidlna
- [x] mpd :musical_note: - [x] mpd :musical_note:
- [x] murmur - [x] murmur
- [x] node-media-server-arm :camera: :cn:
- [x] openmeetings :camera: - [x] openmeetings :camera:
- [x] paddle-ocr - [x] paddle-ocr
- [x] plex :moneybag: - [x] plex :moneybag:

@ -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"]

@ -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();

@ -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