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.
fu-hsi-service/docker/docker-compose/README.md

74 lines
3.6 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

## 🎬 快速开始
### 📝 前提条件
- CPU >= 16 核
- RAM >= 32 GB
- Disk >= 500 GB
- Docker >= 24.0.6 & Docker Compose >= v2.27.0
### 安装包结构说明
| 文件/文件夹 | 说明 |
| - |---------------|
| fu-hsi-nginx/ | 用于存放nginx静态文件 |
| fu-hsi-web/ | 用户存放后端服务程序 |
| .env | 应用的环境配置 |
| docker-compose.yml | docker-compose 配置文件 |
| docker-compose-base.yml | docker-compose 配置文件 |
### 🚀 启动服务
1. 加载镜像
```shell
# 进入deploy文件目录
cd ./deploy
# 加载镜像
docker load -i fu-shi-install.1.0.0.tar.gz
```
2. 修改配置文件
```shell
# 编辑配置文件
$ vi .env
# 根据环境修改配置文件
OLLAMA_URL:ollama访问地址
OLLAMA_MODEL:模型名称
LANGCHAIN_CHAT_URL:langchain-chat服务地址
# 其他配置项可保持默认值
```
3. 进入deploy目录,执行命令
```shell
docker compose up -d
```
等待程序启动完成即可,如果没有启动成功,可重试上面的命令。
启动完成后会打印出下面的日志信息:
[+] Running 5/5
✔ Container fu-hsi-mysql Healthy 0.0s
✔ Container fu-hsi-minio Running 0.0s
✔ Container fu-hsi-neo4j Running 0.0s
✔ Container fu-hsi-web Healthy 0.4s
✔ Container fu-hsi-nginx Started
4. 查看启动情况
```shell
$ docker compose ps
> docker compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
fu-hsi-minio quay.io/minio/minio:RELEASE.2023-12-20T01-00-02Z "/usr/bin/docker-ent…" minio 20 minutes ago Up 20 minutes 0.0.0.0:9000-9001->9000-9001/tcp
fu-hsi-mysql mysql:5.7 "docker-entrypoint.s…" mysql 20 minutes ago Up 20 minutes (healthy) 33060/tcp, 0.0.0.0:5415->3306/tcp
fu-hsi-neo4j neo4j:4.4 "tini -g -- /startup…" neo4j 20 minutes ago Up 20 minutes 0.0.0.0:7474->7474/tcp, 7473/tcp, 0.0.0.0:7687->7687/tcp
fu-hsi-nginx fu-hsi-nginx:1.0.0 "/docker-entrypoint.…" fu-hsi-nginx 20 minutes ago Up 17 minutes 0.0.0.0:80->80/tcp, 443/tcp
fu-hsi-web fu-hsi-web:1.0.0 "java -Xms256m -Xmx1…" fu-hsi-web 20 minutes ago Up 18 minutes (unhealthy) 0.0.0.0:9380->8097/tcp
```
## 🚀 访问服务
访问地址http://ip:9978/case-management