一个在线图片转文字平台
执行以下命令:
git clone https://github.com/dwc-dev/Img2TextOnline.git
cd Img2TextOnline
docker-compose up待前后端容器启动成功后打开 http://localhost:8080
克隆项目
git clone https://github.com/dwc-dev/Img2TextOnline.git
cd Img2TextOnline根据实际情况修改docker-compose.yml中的后端接口地址,然后执行以下命令:
docker-compose up --build -d此命令将启动前端和后端容器。
推荐通过 Nginx 结合反向代理将前后端整合到一个域名下,例如:
反向代理配置示例(Nginx):
server {
listen 80;
location / {
proxy_pass http://localhost:8080; # 前端容器
}
location /api/ {
proxy_pass http://localhost:8000; # 后端容器
}
}