fastgpt - 知识库问答系统 大数据 AI



# postgresql

https://abc.htmltoo.com/thread-45066.htm

# mongo

https://abc.htmltoo.com/thread-45722.htm


docker run -d   -p 87:3000  --name fastgpt  --restart=always   -v  /etc/localtime:/etc/localtime:ro  -e DEFAULT_ROOT_PSW='wdqdmm@0' -e OPENAI_BASE_URL='https://api.openai.com/v1' -e CHAT_API_KEY='sk-xxxx'  -e DB_MAX_LINK='5'  -e TOKEN_KEY='any'  -e ROOT_KEY='root_key'  -e FILE_TOKEN_KEY='filetoken'  -e MONGODB_URI='mongodb://root:wdq2023@mongod:27017/fastgpt?authSource=admin' -e PG_URL='postgresql://root:wdq2023@postgres:5432/fastgpt'  --link mongod  --link postgres  ghcr.io/labring/fastgpt:latest


http://g.htmltoo.com:87

root / wdqdmm@0


image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:latest # 阿里云

image: ghcr.io/labring/fastgpt:latest # github

    environment:
      # root 密码,用户名为: root
      - DEFAULT_ROOT_PSW=1234
      # 中转地址,如果是用官方号,不需要管
      - 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


使用需要配置好openAI才行,简单模式下也可以用,但是采用的是基础库,没有3.5以及4.0这么智能。


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回