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.

32 lines
1021 B
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.

# interro_robot
审讯机器人
## 部署说明
#### web端docker构建
> 把docker文件夹放到服务器目录下进入目录
```shell
- 进入web目录
# 执行构建命令
docker build -t interro-robot-web:1.0.0 .
# 把web/interro_robot-0.0.1-SNAPSHOT文件复制到/data/intro-robot/目录下
# 启动容器
docker run --name interro-robot-web -p 9800:9800 -v /data/intro-robot/:/data/intro-robot/ -d interro-robot-web:1.0.0 --spring.profiles.active=dev
# 进入容器
docker exec -it interro-robot-web sh
```
### nginx docker构建
```shell
# 进入nginx目录
# 构建nginx镜像
docker build -t interro_nginx:1.0.0 .
# 把nginx/dist文件复制到/data/intro-robot/目录下
# 启动nginx容器直接把目录映射到dist层当宿主机更新dist目录时容器内部不会感知到更新需要重新构建容器
docker run --name interro-robot-nginx -p 543:443 -v /data/intro-robot/:/usr/share/nginx/html/ -d -e UPSTREAM_WEB_SERVERS=192.168.10.137:9800 interro-robot-nginx:1.0.0
```