tailchat/server
moonrailgun b6e978e569 fix: add invite code generate check to avoid duplicated invite code
..
.github/workflows chore: fix pnpm version
admin fix(admin): fix import problem in import plugin model
admin-old refactor: move admin to admin-old
devops docs: update docker-compose -> docker compose
lib feat: 增加机器人接受到新的收件箱信息时调用回调
locales feat: add invite code usage limit for every invite code
mixins feat: health add more context
models fix: add invite code generate check to avoid duplicated invite code
packages feat: add invite code usage limit for every invite code
plugins feat: add jump to button for joined groups in discover
public chore: move tailchat-server into tailchat
scripts chore: add swagger script for api
services feat: add invite code usage limit for every invite code
test refactor: fix oauth demo which has little problem
types chore: move tailchat-server into tailchat
views feat: 增加邮箱认证功能
.dockerignore chore: move tailchat-server into tailchat
.env.example feat(server): add getuiclient lib and plugin
.gitignore chore: add swagger script for api
.npmrc chore: move tailchat-server into tailchat
README.md docs: update README in server
jest.config.js chore: move tailchat-server into tailchat
moleculer.config.ts feat: 增加环境变量用于禁用日志选项
openapi.yaml docs: add some openapi schema for user.service
package.json fix: add invite code generate check to avoid duplicated invite code
runner.ts chore: move tailchat-server into tailchat
tsconfig.json fix: remove admin-next in source code

README.md

tailchat-server

Build development environment

Checkout more detail in https://tailchat.msgbyte.com/docs/deployment/dev

服务端插件安装方式

安装所有插件

pnpm plugin:install all

安装单个插件

pnpm plugin:install com.msgbyte.tasks

单节点部署

docker-compose 一键部署

请确保已经安装了:

  • docker
  • docker-compose(或者docker compose plugin)

在项目根目录下执行

docker compose build # 需要编译
docker compose up -d

DevOps

Database management

Checkout more detail in https://tailchat.msgbyte.com/docs/devops/mongodb

通过docker volume

备份

docker run -it --rm --volumes-from <DOCKER_CONTAINER_NAME> -v ${PWD}:/opt/backup --name export busybox sh

# 进入容器
tar -zcvf /opt/backup/data.tar <DATA_PATH>

exit

此处<DATA_PATH>, 如果是minio则为/data/如果是mongo则为/data/db

恢复

docker run -it --rm --volumes-from <DOCKER_CONTAINER_NAME> -v ${PWD}:/opt/backup --name importer busybox sh
tar -zxvf /opt/backup/data.tar
exit

Benchmark

Case 1

Case 2