Skip to content

Commit a6b37c5

Browse files
committed
update 1.5.0
1 parent 3a46f01 commit a6b37c5

539 files changed

Lines changed: 11408 additions & 14694 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ cd bytedesk/deploy/docker
113113
./start.sh mysql artemis standard middleware
114114
```
115115

116-
For more startup/stop combinations (PostgreSQL, Oracle, RabbitMQ, noai, call, full stack), see `deploy/docker/readme.md`.
116+
For more startup/stop combinations (PostgreSQL, Oracle, RabbitMQ, noai, call, full stack), see [docker readme](deploy/docker/readme.md).
117117

118118
```bash
119119
# Please replace 127.0.0.1 with your server IP

README.zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cd bytedesk/deploy/docker
101101
./start.sh mysql artemis standard middleware
102102
```
103103

104-
更多启动/停止组合(PostgreSQL、Oracle、RabbitMQ、noai、call、全量启动)请参考 `deploy/docker/readme.zh.md`
104+
更多启动/停止组合(PostgreSQL、Oracle、RabbitMQ、noai、call、全量启动)请参考 [docker readme](deploy/docker/readme.zh.md)
105105

106106
- [Docker部署](https://www.weiyuai.cn/docs/zh-CN/docs/deploy/docker)
107107
- [宝塔面板部署](https://www.weiyuai.cn/docs/zh-CN/docs/deploy/baota)

deploy/docker/.env.example

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ KINGBASE_ENABLE_CI=yes
2727
KINGBASE_NEED_START=yes
2828

2929
FREESWITCH_DB_HOST=bytedesk-db
30+
FREESWITCH_DATABASE=bytedesk_freeswitch
3031

3132
# =====================================
3233
# Middleware Credentials / 中间件凭据
@@ -62,6 +63,23 @@ COTURN_USER=bytedesk
6263
COTURN_PASS=please_change_coturn_password
6364
FREESWITCH_ESL_PASSWORD=please_change_freeswitch_esl_password
6465

66+
# FreeSWITCH runtime overrides / FreeSWITCH 运行参数覆盖
67+
# 说明:以下变量会覆盖 deploy/freeswitch/conf/vars.xml 中默认值
68+
# XML-CURL 回源地址请填写“freeswitch 容器可访问”的应用地址
69+
FREESWITCH_CDR_PASSWORD=please_change_freeswitch_cdr_password
70+
FREESWITCH_XML_CURL_TOKEN=please_change_xml_curl_token
71+
FREESWITCH_XML_CURL_GATEWAY_URL=http://bytedesk-starter:9003/freeswitch/api/v1/xmlcurl
72+
FREESWITCH_API_BASE_URL=http://bytedesk-starter:9003
73+
FREESWITCH_DB_HOST=bytedesk-db
74+
FREESWITCH_DB_PORT=3306
75+
FREESWITCH_DB_NAME=bytedesk_freeswitch
76+
FREESWITCH_DB_USERNAME=root
77+
FREESWITCH_DB_PASSWORD=please_change_freeswitch_db_password
78+
# 推荐:在 docker 网络内使用 coturn 服务名
79+
FREESWITCH_STUN_SERVER=stun:bytedesk-coturn:3478
80+
FREESWITCH_RTP_START_PORT=16384
81+
FREESWITCH_RTP_END_PORT=32768
82+
6583
# =====================================
6684
# Bytedesk security / 微语安全配置
6785
# =====================================

deploy/docker/compose-app-bytedesk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ services:
1717
TZ: Asia/Shanghai
1818
SERVER_PORT: 9003
1919
BYTEDESK_DEBUG: "false"
20-
BYTEDESK_VERSION: 1.0.0
20+
BYTEDESK_VERSION: 1.5.0
2121
BYTEDESK_LICENSE_KEY: ${BYTEDESK_LICENSE_KEY:-}
2222
BYTEDESK_CUSTOM_ENABLED: "false"
2323
BYTEDESK_CUSTOM_NAME:

deploy/docker/compose-call-db-mysql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ services:
44
bytedesk-freeswitch:
55
environment:
66
FS_CORE_DB_MODULE: mod_mariadb
7-
FS_CORE_DB_DSN: "mariadb://Server=${FREESWITCH_DB_HOST:-bytedesk-db};Port=${MYSQL_PORT:-3306};Database=${MYSQL_DATABASE:-bytedesk};Uid=${MYSQL_ROOT_USER:-root};Pwd=${MYSQL_ROOT_PASSWORD};"
7+
FS_CORE_DB_DSN: "mariadb://Server=${FREESWITCH_DB_HOST:-bytedesk-db};Port=${MYSQL_PORT:-3306};Database=${FREESWITCH_DATABASE:-bytedesk_freeswitch};Uid=${MYSQL_ROOT_USER:-root};Pwd=${MYSQL_ROOT_PASSWORD};"

deploy/docker/compose-call-db-postgresql.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ services:
44
bytedesk-freeswitch:
55
environment:
66
FS_CORE_DB_MODULE: mod_pgsql
7-
FS_CORE_DB_DSN: "pgsql://host=${FREESWITCH_DB_HOST:-bytedesk-db} dbname=${POSTGRES_DB:-bytedesk} user=${POSTGRES_USER:-postgres} password=${POSTGRES_PASSWORD} options='-c client_min_messages=NOTICE'"
7+
FS_CORE_DB_DSN: "pgsql://host=${FREESWITCH_DB_HOST:-bytedesk-db} dbname=${FREESWITCH_DATABASE:-bytedesk_freeswitch} user=${POSTGRES_USER:-postgres} password=${POSTGRES_PASSWORD} options='-c client_min_messages=NOTICE'"

deploy/docker/compose-db-mysql.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ services:
1111
- "${MYSQL_HOST_PORT:-13306}:${MYSQL_PORT:-3306}"
1212
volumes:
1313
- mysql_data:/var/lib/mysql
14+
healthcheck:
15+
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MYSQL_ROOT_PASSWORD} --silent"]
16+
interval: 10s
17+
timeout: 5s
18+
retries: 20
19+
start_period: 20s
1420
networks:
1521
bytedesk-network:
1622
aliases:

deploy/docker/compose-scenario-call.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ services:
4040
start_period: 15s
4141

4242
# FreeSwitch 语音通话服务
43+
# 本地镜像Dockerfile地址:/Users/ningjinpeng/Desktop/git/github/bytedesk-freeswitch/docker/Dockerfile
4344
# https://hub.docker.com/r/bytedesk/freeswitch
4445
# https://github.com/Bytedesk/bytedesk-freeswitch
4546
# 使用自定义构建的 FreeSWITCH 镜像(支持 ARM64/AMD64)
@@ -55,7 +56,26 @@ services:
5556
environment:
5657
TZ: Asia/Shanghai
5758
DISABLE_IPV6: "true"
59+
# ESL 入站口令(与 vars.xml 的 esl_password 对应)
5860
FREESWITCH_ESL_PASSWORD: ${FREESWITCH_ESL_PASSWORD}
61+
# xml_cdr Basic 凭据密码
62+
FREESWITCH_CDR_PASSWORD: ${FREESWITCH_CDR_PASSWORD:-bytedesk123}
63+
# mod_xml_curl 鉴权 token(需与应用侧配置一致)
64+
FREESWITCH_XML_CURL_TOKEN: ${FREESWITCH_XML_CURL_TOKEN:-change_me_in_production}
65+
# mod_xml_curl 回源地址(与 XmlCurlController 统一:/freeswitch/api/v1/xmlcurl)
66+
FREESWITCH_XML_CURL_GATEWAY_URL: ${FREESWITCH_XML_CURL_GATEWAY_URL:-http://host.docker.internal:9003/freeswitch/api/v1/xmlcurl}
67+
# 应用基础地址(用于 cdr_url/user_lookup_url 等派生)
68+
FREESWITCH_API_BASE_URL: ${FREESWITCH_API_BASE_URL:-http://host.docker.internal:9003}
69+
# FreeSWITCH 数据库连接参数
70+
FREESWITCH_DB_HOST: ${FREESWITCH_DB_HOST:-bytedesk-db}
71+
FREESWITCH_DB_PORT: ${FREESWITCH_DB_PORT:-3306}
72+
FREESWITCH_DB_NAME: ${FREESWITCH_DB_NAME:-bytedesk_freeswitch}
73+
FREESWITCH_DB_USERNAME: ${FREESWITCH_DB_USERNAME:-root}
74+
FREESWITCH_DB_PASSWORD: ${FREESWITCH_DB_PASSWORD:-r8FqfdbWUaN3}
75+
# WebRTC / RTP 参数(默认使用 compose 内 coturn 服务)
76+
FREESWITCH_STUN_SERVER: ${FREESWITCH_STUN_SERVER:-stun:bytedesk-coturn:3478}
77+
FREESWITCH_RTP_START_PORT: ${FREESWITCH_RTP_START_PORT:-16384}
78+
FREESWITCH_RTP_END_PORT: ${FREESWITCH_RTP_END_PORT:-32768}
5979
ports:
6080
- "15060:5060/tcp"
6181
- "15060:5060/udp"
@@ -78,8 +98,11 @@ services:
7898
- ../freeswitch/recordings:/usr/local/freeswitch/recordings
7999
- ../freeswitch/etc/odbc.ini:/etc/odbc.ini:ro
80100
- ../freeswitch/etc/odbcinst.ini:/etc/odbcinst.ini:ro
101+
extra_hosts:
102+
- "host.docker.internal:host-gateway"
81103
depends_on:
82-
- bytedesk-db
104+
bytedesk-db:
105+
condition: service_healthy
83106
networks:
84107
- bytedesk-network
85108
healthcheck:

deploy/docker/one/docker-compose-all.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ services:
244244
SERVER_PORT: 9003
245245
# bytedesk config
246246
BYTEDESK_DEBUG: "false"
247-
BYTEDESK_VERSION: 1.0.0
247+
BYTEDESK_VERSION: 1.5.0
248248
# open profile 数据源类型:mysql / postgresql / oracle / kingbase / h2
249249
BYTEDESK_DATASOURCE_ACTIVE: mysql
250250
# 申请licenseKey

deploy/docker/one/docker-compose-noai.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ services:
161161
SERVER_PORT: 9003
162162
# bytedesk config
163163
BYTEDESK_DEBUG: "false"
164-
BYTEDESK_VERSION: 1.0.0
164+
BYTEDESK_VERSION: 1.5.0
165165
# open profile 数据源类型:mysql / postgresql / oracle / kingbase / h2
166166
BYTEDESK_DATASOURCE_ACTIVE: mysql
167167
# 申请licenseKey

0 commit comments

Comments
 (0)