Docker安裝Mirtotalksfu

這個還挺好玩的,可以視訊、共享螢幕(限電腦)、白板,插入圖片、影片一起觀看。

git clone https://github.com/miroslavpejic85/mirotalksfu.git
cp app/src/config.template.js app/src/config.js
cp docker-compose.template.yml docker-compose.yml

Docker-compose應該是會長的跟下面一樣,基本上也不用調

version: '3'

services:
    mirotalksfu:
        image: mirotalk/sfu:latest
        build:
            context: .
            dockerfile: Dockerfile
        container_name: mirotalksfu
        hostname: mirotalksfu
        restart: unless-stopped
        volumes:
            - ./app/src/config.js:/src/app/src/config.js
            # These volumes are not mandatory, comment if you want to use it
            # - ./app/:/src/app/:ro
            # - ./public/:/src/public/:ro
        ports:
            - '3010:3010/tcp'
            - '40000-40100:40000-40100/tcp'
            - '40000-40100:40000-40100/udp'
~                                              

要CD到src路徑調整config.js

藍框處要改成您的公網IP(Public IP),這裡沒有設定的話,影像跑不出來,但是白板聊天什麼的還是可以用

改完之後就可以

docker-compose pull

&

docker-compose up -d

在去IP:3010的網址就可以,也可以反代

記得要開40000-40100的PORT

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *