1
0

feat(tangsengdaodao): update app from version 1.5 to 2.0

- rename directory structure from `apps/tangsengdaodao/1.5/` to `apps/tangsengdaodao/2.0/`
- update docker-compose image tags for wukongim and server services
  - wukongim: `v1.2` → `v2.2.3-20260128`
  - tangsengdaodaoserver: `v1.5` → `v2`
This commit is contained in:
pooneyy
2026-02-23 11:27:51 +08:00
parent 3b27afb71a
commit e7b6d9cb43
3 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
CONTAINER_NAME="tangsengdaodao"
EXTERNAL_IP="1.2.3.4"
MINIO_HOST="minio"
MINIO_PORT=9000
MINIO_ROOT_PASSWORD="minio"
MINIO_ROOT_USER="minio"
PANEL_APP_PORT_HTTP=83
PANEL_APP_PORT_TS_APP_HTTP=8090
PANEL_APP_PORT_TS_APP_WEB=82
PANEL_APP_PORT_WK_TCP=5100
PANEL_APP_PORT_WK_WEB_SERVER=5300
PANEL_APP_PORT_WK_WS=5200
PANEL_DB_HOST="mysql"
PANEL_DB_HOST_NAME="mysql"
PANEL_DB_NAME="tsdd"
PANEL_DB_PORT=3306
PANEL_DB_USER="tsdd"
PANEL_DB_USER_PASSWORD="tsdd@123456"
PANEL_REDIS_ROOT_PASSWORD="passsword"
TS_ADMIN="superAdmin"
TS_ADMINPWD="tsdd@123456"
TS_DB_REDIS_HOST="redis"
TS_DB_REDIS_PORT=6379
TS_SMSCODE=123456

View File

@@ -0,0 +1,227 @@
additionalProperties:
formFields:
- default: ""
edit: true
envKey: EXTERNAL_IP
labelEn: External IP
labelZh: 外部访问 IP
label:
en: External IP
zh: 外部访问 IP
required: true
type: text
- default: ""
envKey: PANEL_DB_HOST
key: mysql
labelEn: Database Service
labelZh: 数据库服务
label:
en: Database Service
zh: 数据库服务
required: true
type: service
- default: "tsdd"
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
label:
en: Database
zh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: "tsdd"
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
label:
en: User
zh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: "tsdd@123456"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
label:
en: Password
zh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: ""
edit: true
envKey: TS_DB_REDIS_HOST
key: redis
labelEn: Redis Service
labelZh: 缓存服务
label:
en: Redis Service
zh: 缓存服务
required: true
type: service
- default: 6379
envKey: TS_DB_REDIS_PORT
labelEn: Redis Port
labelZh: Redis 服务端口
label:
en: Redis Port
zh: Redis 服务端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: PANEL_REDIS_ROOT_PASSWORD
labelEn: Redis Password
labelZh: Redis 密码
label:
en: Redis Password
zh: Redis 密码
required: true
type: password
- default: ""
edit: true
envKey: MINIO_HOST
key: minio
labelEn: Minio Service
labelZh: minio 对象存储服务
label:
en: Minio Service
zh: minio 对象存储服务
required: true
type: service
- default: 9000
envKey: MINIO_PORT
labelEn: minio port
labelZh: minio 端口
label:
en: minio port
zh: minio 端口
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: MINIO_ROOT_USER
labelEn: minio user
labelZh: minio 用户
label:
en: minio user
zh: minio 用户
required: true
rule: paramCommon
type: text
- default: ""
edit: true
envKey: MINIO_ROOT_PASSWORD
labelEn: Minio Password
labelZh: minio 用户密码
label:
en: Minio Password
zh: minio 用户密码
required: true
rule: paramComplexity
type: password
- default: 5100
edit: true
envKey: PANEL_APP_PORT_WK_TCP
labelEn: WuKongIM tcp port
labelZh: 悟空 IM TCP 端口
label:
en: WuKongIM tcp port
zh: 悟空 IM TCP 端口
required: true
rule: paramPort
type: number
- default: 5200
edit: true
envKey: PANEL_APP_PORT_WK_WS
labelEn: WuKongIM ws port
labelZh: 悟空 IM WS 端口
label:
en: WuKongIM ws port
zh: 悟空 IM WS 端口
required: true
rule: paramPort
type: number
- default: 5300
edit: true
envKey: PANEL_APP_PORT_WK_WEB_SERVER
labelEn: WuKongIM web port
labelZh: 悟空 IM 监控端口
label:
en: WuKongIM web port
zh: 悟空 IM 监控端口
required: true
rule: paramPort
type: number
- default: 123456
edit: true
envKey: TS_SMSCODE
labelEn: SMS
labelZh: 唐僧叨叨短信验证码
label:
en: SMS
zh: 唐僧叨叨短信验证码
required: true
type: number
- default: "superAdmin"
disabled: true
envKey: TS_ADMIN
labelEn: Super Admin User
labelZh: 唐僧叨叨超级管理员
label:
en: Super Admin User
zh: 唐僧叨叨超级管理员
required: true
type: text
- default: "tsdd@123456"
edit: true
envKey: TS_ADMINPWD
labelEn: Admin Password
labelZh: 唐僧叨叨超级管理员默认密码
label:
en: Admin Password
zh: 唐僧叨叨超级管理员默认密码
random: true
required: true
rule: paramComplexity
type: password
- default: 8090
edit: true
envKey: PANEL_APP_PORT_TS_APP_HTTP
labelEn: TangSengDaoDao port
labelZh: 唐僧叨叨端口
label:
en: TangSengDaoDao port
zh: 唐僧叨叨端口
required: true
rule: paramPort
type: number
- default: 82
edit: true
envKey: PANEL_APP_PORT_TS_APP_WEB
labelEn: TangSengDaoDao web port
labelZh: 唐僧叨叨 WEB 端口
label:
en: TangSengDaoDao web port
zh: 唐僧叨叨 WEB 端口
required: true
rule: paramPort
type: number
- default: 83
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: TangSengDaoDao Management background port
labelZh: 唐僧叨叨管理后台端口
label:
en: TangSengDaoDao Management background port
zh: 唐僧叨叨管理后台端口
required: true
rule: paramPort
type: number

View File

@@ -0,0 +1,87 @@
services:
tsddwukongim: # 唐僧叨叨通讯服务悟空IM
container_name: ${CONTAINER_NAME}-wukongim
image: registry.cn-shanghai.aliyuncs.com/wukongim/wukongim:v2.2.3-20260128
restart: always
ports:
- "${PANEL_APP_PORT_WK_TCP}:5100" # tcp长连接端口外网开放
- "${PANEL_APP_PORT_WK_WS}:5200" # websocket端口外网开放
- "${PANEL_APP_PORT_WK_WEB_SERVER}:5300" # 监控端口
volumes:
- ./wukongim:/root/wukongim
environment:
- WK_MODE=release
- WK_EXTERNAL_IP=${EXTERNAL_IP}
- WK_CONVERSATION_ON=true
- WK_WEBHOOK_GRPCADDR=tangsengdaodaoserver:6979
- WK_DATASOURCE_ADDR=http://tangsengdaodaoserver:8090/v1/datasource
- WK_DATASOURCE_CHANNELINFOON=true
- WK_TOKENAUTHON=true
networks:
- 1panel-network
labels:
createdBy: "Apps"
tangsengdaodaoserver: # 唐僧叨叨的业务服务
container_name: ${CONTAINER_NAME}-tsdd-server
image: registry.cn-shanghai.aliyuncs.com/wukongim/tangsengdaodaoserver:v2
restart: always
command: "api"
healthcheck:
test: "wget -q -Y off -O /dev/null http://localhost:8090/v1/ping > /dev/null 2>&1"
interval: 10s
timeout: 10s
retries: 3
depends_on:
- tsddwukongim
ports:
- "${PANEL_APP_PORT_TS_APP_HTTP}:8090"
volumes:
- ./tsdd:/home/tsdddata
# - ./tsdd/configs/tsdd.yaml:/home/configs/tsdd.yaml
environment:
- TS_MODE=release
- TS_WUKONGIM_APIURL=http://tsddwukongim:5001
- TS_DB_MYSQLADDR=${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@tcp(${PANEL_DB_HOST}:${PANEL_DB_PORT})/${PANEL_DB_NAME}?charset=utf8mb4&parseTime=true&loc=Local
- TS_DB_REDISADDR=${TS_DB_REDIS_HOST}:${TS_DB_REDIS_PORT}
- TS_DB_REDISPASS=${PANEL_REDIS_ROOT_PASSWORD}
- TS_EXTERNAL_IP=${EXTERNAL_IP}
- TS_SMSCODE=${TS_SMSCODE}
- TS_ADMINPWD=${TS_ADMINPWD}
- TS_FILESERVICE=minio
- TS_MINIO_URL=http://${MINIO_HOST}:${MINIO_PORT}
- TS_MINIO_ACCESSKEYID=${MINIO_ROOT_USER}
- TS_MINIO_SECRETACCESSKEY=${MINIO_ROOT_PASSWORD}
- TS_AVATAR_DEFAULTBASEURL=https://api.multiavatar.com/{avatar}.png
networks:
- 1panel-network
labels:
createdBy: "Apps"
tangsengdaodaoweb: # 唐僧叨叨的web服务
container_name: ${CONTAINER_NAME}-tsdd-web
image: "registry.cn-shanghai.aliyuncs.com/wukongim/tangsengdaodaoweb:latest"
pull_policy: always
restart: always
environment:
- API_URL=http://${EXTERNAL_IP}:${PANEL_APP_PORT_TS_APP_HTTP}/
ports:
- "${PANEL_APP_PORT_TS_APP_WEB}:80"
networks:
- 1panel-network
labels:
createdBy: "Apps"
tangsengdaodaomanager: # 唐僧叨叨的后台管理系统
container_name: ${CONTAINER_NAME}-tsdd-manager
image: "registry.cn-shanghai.aliyuncs.com/wukongim/tangsengdaodaomanager:latest"
pull_policy: always
restart: always
environment:
- API_URL=http://${EXTERNAL_IP}:${PANEL_APP_PORT_TS_APP_HTTP}/
ports:
- "${PANEL_APP_PORT_HTTP}:80"
networks:
- 1panel-network
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true