Skip to content

Instantly share code, notes, and snippets.

@Nigh
Created August 10, 2023 03:43
Show Gist options
  • Save Nigh/85cb1525e63d9bdaecea94464a5eb8e1 to your computer and use it in GitHub Desktop.
Save Nigh/85cb1525e63d9bdaecea94464a5eb8e1 to your computer and use it in GitHub Desktop.
tl-rtc docker compose deploying debug
rtc.example.com {
reverse_proxy localhost:9092
}
## 用于docker-compose部署并启动官方镜像
version: '3'
services:
#http模式启动api服务
api-http:
profiles: ['http']
container_name: api
image: iamtsm/tl-rtc-file-api
env_file:
- ./tlrtcfile.env
environment:
- tl_rtc_file_env_mode=http
- tl_rtc_file_db_open=true
command:
- tlapi
ports:
- 9092:9092
links:
- mysql-tl-rtc
depends_on:
- mysql-tl-rtc
volumes:
- ./tlrtcfile.env:/tlrtcfile/tlrtcfile.env
#https模式启动api服务
api-https:
profiles: ['https']
container_name: api
image: iamtsm/tl-rtc-file-api
env_file:
- ./tlrtcfile.env
environment:
- tl_rtc_file_env_mode=https
- tl_rtc_file_db_open=true
command:
- tlapi
ports:
- 9092:9092
links:
- mysql-tl-rtc
depends_on:
- mysql-tl-rtc
volumes:
- ./tlrtcfile.env:/tlrtcfile/tlrtcfile.env
#http模式启动socket服务
socket-http:
profiles: ['http']
container_name: socket
image: iamtsm/tl-rtc-file-socket
command:
- tlsocket
env_file:
- ./tlrtcfile.env
environment:
- tl_rtc_file_env_mode=http
- tl_rtc_file_db_open=true
ports:
- 8444:8444
links:
- mysql-tl-rtc
volumes:
depends_on:
- mysql-tl-rtc
volumes:
- ./tlrtcfile.env:/tlrtcfile/tlrtcfile.env
#https模式启动socket服务
socket-https:
profiles: ['https']
container_name: socket
image: iamtsm/tl-rtc-file-socket
command:
- tlsocket
env_file:
- ./tlrtcfile.env
environment:
- tl_rtc_file_env_mode=https
- tl_rtc_file_db_open=true
ports:
- 8444:8444
links:
- mysql-tl-rtc
depends_on:
- mysql-tl-rtc
volumes:
- ./tlrtcfile.env:/tlrtcfile/tlrtcfile.env
#mysql服务
mysql-tl-rtc:
profiles: ['http','https']
container_name: mysql-tl-rtc
image: iamtsm/tl-rtc-file-mysql
restart: on-failure
env_file:
- ./docker/mysql/mysql.env
ports:
- 3307:3306
volumes:
- ./docker/mysql/data/mysql.env:/tlrtcfile/docker/mysql/mysql.env
- ./docker/mysql/data/db:/var/lib/mysql
- ./docker/mysql/data/my.cnf:/etc/mysql/conf.d/my.cnf
- ./docker/mysql/data/log:/var/log/mysql
- ./docker/mysql/data/init.sql:/docker-entrypoint-initdb.d/init.sql
#-----------------以下为基础配置-----------------#
## api服务端口
tl_rtc_file_api_port=9092
## websocket服务端口
tl_rtc_file_ws_port=8444
## websocket服务地址
tl_rtc_file_ws_host=ws://example.com:8444
#-----------------以下为webrtc相关配置-----------------#
## webrtc-stun中继服务地址
tl_rtc_file_webrtc_stun_host=
## webrtc-turn中继服务地址
tl_rtc_file_webrtc_turn_host=
## webrtc中继服务用户名
tl_rtc_file_webrtc_turn_username=
## webrtc中继服务密码
tl_rtc_file_webrtc_turn_credential=
## webrtc中继服务Secret
tl_rtc_file_webrtc_turn_secret=
## webrtc中继服务帐号过期时间 (毫秒)
tl_rtc_file_webrtc_turn_expire=86400000
#-----------------以下为mysql数据库相关配置-----------------#
## 是否开启数据库
tl_rtc_file_db_open=false
## 数据库地址
tl_rtc_file_db_mysql_host=mysql-tl-rtc
## 数据库端口
tl_rtc_file_db_mysql_port=3307
## 数据库名称
tl_rtc_file_db_mysql_dbName=webchat
## 数据库用户名
tl_rtc_file_db_mysql_user=tlrtcfile
## 数据库密码
tl_rtc_file_db_mysql_password=tlrtcfileadmin
#-----------------以下为oss相关配置-----------------#
## oss-seafile存储库ID
tl_rtc_file_oss_seafile_repoid=
## oss-seafile地址
tl_rtc_file_oss_seafile_host=
## oss-seafile用户名
tl_rtc_file_oss_seafile_username=
## oss-seafile密码
tl_rtc_file_oss_seafile_password=
## oss-alyun存储accessKey
tl_rtc_file_oss_alyun_AccessKey=
## oss-aly存储SecretKey
tl_rtc_file_oss_alyun_Secretkey=
## oss-aly存储bucket
tl_rtc_file_oss_alyun_bucket=
## oss-txyun存储accessKey
tl_rtc_file_oss_txyun_AccessKey=
## oss-txyunt存储SecretKey
tl_rtc_file_oss_txyun_Secretkey=
## oss-txyun存储bucket
tl_rtc_file_oss_txyun_bucket=
## oss-qiniuyun存储accessKey
tl_rtc_file_oss_qiniuyun_AccessKey=
## oss-qiniuyunt存储SecretKey
tl_rtc_file_oss_qiniuyun_Secretkey=
## oss-qiniuyun存储bucket
tl_rtc_file_oss_qiniuyun_bucket=
#-----------------以下为管理后台相关配置-----------------#
## 管理后台房间号
tl_rtc_file_manage_room=tlrtcadmin
## 管理后台密码
tl_rtc_file_manage_password=tlrtcpassword
# #-----------------以下为openai相关配置-----------------#
# ## openai-key,如果有多个key,逗号分隔
tl_rtc_file_openai_keys=
# #-----------------以下为企业微信通知相关配置-----------------#
# ## 企业微信通知开关
tl_rtc_file_notify_open=false
## 企业微信通知机器人KEY,正常通知,如果有多个key,逗号分隔
tl_rtc_file_notify_qiwei_normal=
## 企业微信通知机器人KEY,错误通知,如果有多个key,逗号分隔
tl_rtc_file_notify_qiwei_error=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment