這個還挺好玩的,可以視訊、共享螢幕(限電腦)、白板,插入圖片、影片一起觀看。
git clone https://github.com/miroslavpejic85/mirotalksfu.git
![](https://i0.wp.com/www.dswhi.com/wp-content/uploads/2023/12/image.png?fit=937%2C207&ssl=1)
cp app/src/config.template.js app/src/config.js
cp docker-compose.template.yml docker-compose.yml
![](https://i0.wp.com/www.dswhi.com/wp-content/uploads/2023/12/image-1.png?fit=913%2C50&ssl=1)
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
![](https://i0.wp.com/www.dswhi.com/wp-content/uploads/2023/12/image-2.png?fit=1024%2C105&ssl=1)
藍框處要改成您的公網IP(Public IP),這裡沒有設定的話,影像跑不出來,但是白板聊天什麼的還是可以用
![](https://i0.wp.com/www.dswhi.com/wp-content/uploads/2023/12/image-3.png?fit=1813%2C356&ssl=1)
改完之後就可以
docker-compose pull
&
docker-compose up -d
在去IP:3010的網址就可以,也可以反代
![](https://i0.wp.com/www.dswhi.com/wp-content/uploads/2023/12/image-4.png?fit=1348%2C782&ssl=1)
記得要開40000-40100的PORT