Skip to content

Commit

Permalink
add fastgpt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Dec 14, 2023
1 parent 2da428d commit 5107024
Show file tree
Hide file tree
Showing 7 changed files with 123 additions and 0 deletions.
122 changes: 122 additions & 0 deletions Apps/fastgpt/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# 非 host 版本, 不使用本机代理
# (不懂 Docker 的,只需要关心 OPENAI_BASE_URL 和 CHAT_API_KEY 即可!)
version: '3.3'
name: fastgpt
services:
pg:
image: ankane/pgvector:v0.5.0 # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector:v0.5.0 # 阿里云
container_name: pg
restart: always
ports: # 生产环境建议不要暴露
- 5432:5432
networks:
- fastgpt
environment:
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
volumes:
- /DATA/AppData/fastgpt/pg/data:/var/lib/postgresql/data
mongo:
image: mongo:5.0.18
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18 # 阿里云
container_name: mongo
restart: always
ports: # 生产环境建议不要暴露
- 27017:27017
networks:
- fastgpt
environment:
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
- MONGO_INITDB_ROOT_USERNAME=username
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- /DATA/AppData/fastgpt/mongo/data:/data/db
fastgpt:
container_name: fastgpt
image: ghcr.io/labring/fastgpt:latest # git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:latest # 阿里云
ports:
- 3000:3000
networks:
- fastgpt
depends_on:
- mongo
- pg
restart: always
environment:
# root 密码,用户名为: root
- DEFAULT_ROOT_PSW=1234
# 中转地址,如果是用官方号,不需要管。务必加 /v1
- OPENAI_BASE_URL=https://api.openai.com/v1
- CHAT_API_KEY=sk-xxxx
- DB_MAX_LINK=5 # database max link
- TOKEN_KEY=any
- ROOT_KEY=root_key
- FILE_TOKEN_KEY=filetoken
# mongo 配置,不需要改. 如果连不上,可能需要去掉 ?authSource=admin
- MONGODB_URI=mongodb://username:password@mongo:27017/fastgpt?authSource=admin
# pg配置. 不需要改
- PG_URL=postgresql://username:password@pg:5432/postgres
volumes:
- /DATA/AppData/fastgpt/config.json:/app/data/config.json
networks:
fastgpt:

x-casaos:
architectures:
- amd64
- arm64
main: fastgpt
category: Chat
author: Cp0204
developer: sealos.io
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/icon.png
screenshot_link:
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/screenshot-1.png
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/screenshot-2.png
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/screenshot-3.png
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/screenshot-4.png
description:
en_us: FastGPT is a knowledge-based QA system built on the LLM, offers out-of-the-box data processing and model invocation capabilities, allows for workflow orchestration through Flow visualization!
zh_cn: FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景!
tagline:
en_us: Knowledge-based QA system built on the LLM
zh_cn: 大语言模型的知识库问答系统
title:
en_us: FastGPT
zh_cn: FastGPT
tips:
before_install:
en_us: "Installation Steps
1. Before installation, create a **config.json** file and run it on the host machine.
```bash
mkdir -p /DATA/AppData/fastgpt
wget -O /DATA/AppData/fastgpt/config.json https://raw.githubusercontent.com/labring/FastGPT/main/projects/app/data/config.json
``
2. The login username is `root` and the password is the value of the environment variable `DEFAULT_ROOT_PSW`, which defaults to `1234`.
3. Modify the `OPENAI_BASE_URL` and `CHAT_API_KEY` environment variables in `fastgpt`.
Documentation: https://doc.fastgpt.in/docs/development/docker/"
zh_cn: 安装步骤

1. 安装前先建立**config.json**文件,在宿主机运行

```bash
mkdir -p /DATA/AppData/fastgpt
wget -O /DATA/AppData/fastgpt/config.json https://raw.githubusercontent.com/labring/FastGPT/main/projects/app/data/config.json
```
2. 登录用户名为`root`,密码为环境变量`DEFAULT_ROOT_PSW`的值,默认为`1234`

3. 修改`fastgpt`中的`OPENAI_BASE_URL`、`CHAT_API_KEY`环境变量

官方文档:https://doc.fastgpt.in/docs/development/docker/
custom: null
port_map: '3000'
scheme: http
index: /
Binary file added Apps/fastgpt/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/fastgpt/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/fastgpt/screenshot-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/fastgpt/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/fastgpt/screenshot-4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ If you think this project is helpful to you, you can give me a little support. T
| ![EasyImage](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/easyimage/icon.png) | [EasyImage](./Apps/easyimage) | Supporting multi -file upload, simple countless data library, returning picture URL, Markdown, bbscode, html picture warehouse program. Demo: https://png.cm/<br>支持多文件上传,简单无数据库,返回图片url、markdown、bbscode、html的一款图床程序,演示地址:https://png.cm/ |
| ![Excalidraw](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/Excalidraw/icon.png) | [Excalidraw](./Apps/Excalidraw) | Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams, illustrate ideas, and create beautiful illustrations remotely.<br>Excalidraw是一款虚拟协作白板工具,可以让您轻松绘制图表、阐明思想和远程创建精美的插图。 |
| ![FAST OS DOCKER](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fast-os-docker/icon.png) | [FAST OS DOCKER](./Apps/fast-os-docker) | FAST OS DOCKER is a graphical management tool for Docker, providing users with Docker overview, local container management, remote image pulling, server disk mapping, server network management, and more. It can meet the container management needs of small to medium-sized organizations.<br>FAST OS DOCKER是Docker的图形化管理工具,为用户提供了Docker总览、本地容器管理、远程镜像拉取、服务器磁盘映射、服务器网络管理等功能,基本能满足中小型单位对容器管理的全部需求。 |
| ![FastGPT](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/fastgpt/icon.png) | [FastGPT](./Apps/fastgpt) | FastGPT is a knowledge-based QA system built on the LLM, offers out-of-the-box data processing and model invocation capabilities, allows for workflow orchestration through Flow visualization!<br>FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开箱即用的数据处理、模型调用等能力。同时可以通过 Flow 可视化进行工作流编排,从而实现复杂的问答场景! |
| ![frpc](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/frpc/icon.png) | [frpc](./Apps/frpc) | A fast reverse proxy client that helps you expose a local server to the internet. It provides client authentication and supports multiple protocols.<br>一个快速的反向代理客户端,可以帮助您将本地服务器暴露到互联网。它提供客户端认证并支持多种协议。 |
| ![frps](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/frps/icon.png) | [frps](./Apps/frps) | A fast reverse proxy server that helps you expose a local server to the internet. It provides client authentication and supports multiple protocols.<br>一个快速的反向代理服务器,可以帮助您将本地服务器暴露到互联网。它提供客户端认证并支持多种协议。 |
| ![Gopeed](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/gopeed/icon.png) | [Gopeed](./Apps/gopeed) | Gopeed (full name Go Speed) is a high-speed downloader developed by Golang + Flutter. It supports (HTTP, BitTorrent, Magnet) protocols and is compatible with all platforms. In addition to basic download functions, Gopeed is highly customizable, supporting additional features through API integration or by installing and developing extensions.<br>Gopeed(全称 Go Speed)是一款由 Golang + Flutter 开发的高速下载器,支持(HTTP、BitTorrent、Magnet)协议下载,并且支持全平台使用。除了基本的下载功能外,Gopeed 还是一款高度可定制化的下载器,支持通过对接 APIs 或者安装和开发扩展来实现更多的功能。 |
Expand Down

0 comments on commit 5107024

Please sign in to comment.