mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add node-media-server-arm
This commit is contained in:
parent
a371d27aca
commit
9f0a01423c
@ -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:
|
||||
|
17
node-media-server/arm/Dockerfile
Normal file
17
node-media-server/arm/Dockerfile
Normal file
@ -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"]
|
23
node-media-server/arm/app.js
Normal file
23
node-media-server/arm/app.js
Normal file
@ -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();
|
8
node-media-server/arm/docker-compose.yml
Normal file
8
node-media-server/arm/docker-compose.yml
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user