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 eec3a79899 fix: fix auth http client not pass storage key problem #98 2 years ago
..
.github/workflows
admin fix: fix auth http client not pass storage key problem #98 2 years ago
admin-old refactor: move admin to admin-old 2 years ago
devops
lib
locales fix: fix translation problem 2 years ago
mixins feat: health add more context 2 years ago
models refactor(admin-next): update mail table fields 2 years ago
packages feat: create discover plugin and define db schema 2 years ago
plugins feat: create discover plugin and define db schema 2 years ago
public
scripts
services feat(fim): add avatar storage and enable fim 2 years ago
test refactor: fix oauth demo which has little problem 2 years ago
types
views
.dockerignore
.env.example
.gitignore
.npmrc
README.md
jest.config.js
moleculer.config.ts
openapi.yaml docs: add some openapi schema for user.service 2 years ago
package.json feat: add chat.inbox.batchAppend action which can batch add inbox item 2 years ago
runner.ts
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