mirror of https://github.com/msgbyte/tailchat
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.
|
|
2 years ago | |
|---|---|---|
| .. | ||
| admin | 2 years ago | |
| devops | 3 years ago | |
| lib | 3 years ago | |
| locales | 2 years ago | |
| mixins | 2 years ago | |
| models | 2 years ago | |
| packages | 2 years ago | |
| plugins | 2 years ago | |
| public | 3 years ago | |
| scripts | 2 years ago | |
| services | 2 years ago | |
| test | 2 years ago | |
| types | 3 years ago | |
| views | 3 years ago | |
| .dockerignore | 3 years ago | |
| .env.example | 3 years ago | |
| .gitignore | 3 years ago | |
| .npmrc | 3 years ago | |
| README.md | 3 years ago | |
| jest.config.js | 3 years ago | |
| moleculer.config.ts | 3 years ago | |
| openapi.yaml | 2 years ago | |
| package.json | 2 years ago | |
| runner.ts | 3 years ago | |
| tsconfig.json | 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