Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang

RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,direct

RUN apt-get update
RUN apt-get install -y git python jq curl vim

RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
RUN apt-get update && apt-get install -y nodejs
RUN npm install gulp yarn -g

RUN npm i -g --unsafe-perm=true @langhuihui/monica

# Monica:3000 Gateway:8081 GB28181:5060 RTMP:1935 Jessica:8080
# RTP:58200-58300 Cluster:2019 HDL:2020 RTSP:554
EXPOSE 3000 8081 1935 5060 8080 58200-58300 2019 2020 554

CMD [ "monica" ]
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
- monica采用Node.Js和Vue3.0技术开发,所以安装monica不需要golang环境,但是Monibuca是纯Go的系统,所以需要搭建Go环境。

## Monibuca介绍
[官方网站https://monibuca.com](https://monibuca.com)
>[官方网站: https://monibuca.com](https://monibuca.com)

**Monibuca** 是一个开源的流媒体服务器开发框架,适用于快速定制化开发流媒体服务器,可以对接 `CDN` 厂商,作为回源服务器,也可以自己搭建集群部署环境。
丰富的内置插件提供了流媒体服务器的常见功能,例如 `rtmp server` 、 `http-flv` 、视频录制、`webRTC`、 `GB28181` 等。除此以外还内置了后台 `web` 界面,方便观察服务器运行的状态。
也可以自己开发后台管理界面,通过 `api` 方式获取服务器的运行信息。
Expand All @@ -26,6 +27,21 @@ monica
**mac 电脑如何进入 root 身份:**<br>
[https://www.jianshu.com/p/f5e09261a064](https://www.jianshu.com/p/f5e09261a064) ,按照链接教程设置好后,在终端执行 `su root` 然后再执行 `monica` 命令 启动实例管理器

**使用docker快速构建**<br>
```sh
sudo docker run -itd --name monica-ist \
-p 3000:3000 \
-p 1935:1935 \
-p 5060:5060 \
-p 554:554 \
-p 2019:2019 \
-p 2020:2020 \
-p 8080:8080 \
-p 8081:8081 \
-p 58200-58300:58200-58300 \
monibuca/monica
```

启动后,打开 [http://localhost:3000](http://localhost:3000) 会看到下面的界面

![r1](./docs/images/r1.gif)
Expand Down
16 changes: 16 additions & 0 deletions docker_build_image.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

sudo docker build -t monibuca/monica -f Dockerfile .

# sudo docker run -itd --name monica-ist \
# -p 3000:3000 \
# -p 1935:1935 \
# -p 5060:5060 \
# -p 554:554 \
# -p 2019:2019 \
# -p 2020:2020 \
# -p 8080:8080 \
# -p 8081:8081 \
# -p 58200-58300/udp:58200-58300 \
# monibuca/monica