You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/server
moonrailgun 34601c2502 refactor: update maxrows for admin 3 weeks ago
..
admin refactor: update maxrows for admin 3 weeks ago
devops docs: update docker-compose -> docker compose 2 years ago
lib feat: 增加机器人接受到新的收件箱信息时调用回调 2 years ago
locales refactor: add translation 1 year ago
mixins fix: fix a problem which make disableMsgpack not work 9 months ago
models feat: add file upload in chat usage 2 months ago
packages feat: add DISABLE_TRACING env which useful save logs 5 months ago
plugins feat: add agora plugin support webrtc permission request 1 year ago
public chore: move tailchat-server into tailchat 3 years ago
scripts chore: add plugin create node_modules symlink in build stage 2 years ago
services feat: add file upload in chat usage 2 months ago
test chore: add dev script for openapi-oidc-page 2 years ago
types chore: move tailchat-server into tailchat 3 years ago
views feat: 增加邮箱认证功能 2 years ago
.dockerignore chore: move tailchat-server into tailchat 3 years ago
.env.example refactor(admin): only show chat image feature will exclude group avatar and background 5 months ago
.gitignore chore: add swagger script for api 2 years ago
.npmrc chore: move tailchat-server into tailchat 3 years ago
README.md docs: update README in server 2 years ago
jest.config.js chore: move tailchat-server into tailchat 3 years ago
moleculer.config.ts feat: add DISABLE_TRACING env which useful save logs 5 months ago
openapi.json feat: add chat.message.getMessage api (#227) 10 months ago
openapi.yaml docs: add some openapi schema for user.service 2 years ago
package.json chore: update package.json config for pnpm 8 months ago
runner.ts chore: move tailchat-server into tailchat 3 years ago
tsconfig.json fix: remove admin-next in source code 2 years ago

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