Yuan AI ChatGPT system 4.0.0 independent open source version + H5 terminal + small program installation and configuration tutorial

The Yuan AI system is an Ai intelligent question-and-answer applet developed based on the popular ChatGPT abroad. In this issue, the overall test of the source code system is perfect. It can be said that Yuan AI is currently the best ChatGPT docking OpenAI software system in China. After testing, the answer is more accurate than the previous version 3.0.0, and many bugs have been fixed, including the new H5 function. Of course, the problem of many users is highlighted, and the answer to the biggest question is slowed down. The main reason is that there are many people sharing the reverse proxy. If you want to operate for a long time, it is recommended to build your own reverse proxy server. The demonstration can be compared to the specific URL provided by the editor.

I put the demo at the bottom, you can take a look

Installation Environment
Server: Java SpringBoot Mysql Redis & Jwt Spring Security
WEB: VUE Element UI
Management: VUE Element UI
Applet: uniapp

=====================
The system is divided into 3 ends: application end, server end, management end
We will talk about the management end first in this issue, and the installation steps will be introduced below

1. Create a new database

insert image description here

2. Import the downloaded database

insert image description here

insert image description here

3. Copy the following docker-compose.yml file

version: '3.8'

services:
  yaiserver-admin:
    image: yuyanbrouecn/yaiserverinstall:latest
    container_name: yaiserver-admin
    restart: always
    network_mode: host
    # 定义环境变量
    environment:
      # 服务端口,默认8081,你没有其他应用占用8081端口就不动
      - SERVER_PORT=8081
      # Redis主机127.0.0.1,你自己服务器上就不动
      - REDIS_HOST=127.0.0.1
      # Redis端口默认6379,你没改过就不动
      - REDIS_PORT=6379
      # Redis密码默认为空,你没改过就不用填
      - REDIS_PASSWORD=
      # MySQL主机址默认127.0.0.1,你自己服务器上就不动
      - MYSQL_HOST=127.0.0.1
      # MySQL数据库端口默认3306,你没改过就不动
      - MYSQL_PORT=3306
      # MySQL数据库名称
      - MYSQL_NAME=填你的数据库名称
      # MySQL数据库用户名
      - MYSQL_USERNAME=填你的数据库用户名
      # MySQL数据库密码
      - MYSQL_PASSWORD=填你的数据库密码

4. Modify the environment variables of the docker-compose.yml file as needed.

insert image description here

5. Add Compose template

  • Copy the modified docker-compose.yml file.
  • Enter the docker column on the right side of the pagoda, click Add Compos Template to copy your modified files into it
  • Click Add.

insert image description here

6. Add the container.

  • Enter the container page, click Add container,
  • Select Container Orchestration. Choose the Compose template you just created, the name of Compos is random,
  • Click Add.

insert image description here

  • wait for promptsuccessful deploymentThat's it.

7. Check startup

  • Go to the container page and find the container you just created
  • Click Log.
  • The initialization verification code base map and startup success appear in the log.

insert image description here

8. Set domain name access

  • Enter the website column
  • create a new website

insert image description here

  • Apply for an ssl certificate and enable mandatory HTTPS

insert image description here

  • Set up a reverse proxy
  • The target URL is
    http://127.0.0.1: the service port set in your docker-compose.yml

insert image description here

  • Access the domain name, and a prompt will indicate that the backend deployment is complete.

Reverse proxy URL and alternate URL download package view

Key points for installation and use: Be sure to pay attention to the background configuration, there will be a configuration tutorial

First of all, if you need to use the WEB side, you need to authorize, but the backend does not need it

The following is a small program demonstration, the source code is fully open source
Please add a picture description
Please add a picture description
Please add a picture description
Please add a picture description

Guess you like

Origin blog.csdn.net/qq_41554115/article/details/129702601