【发布时间】:2020-12-15 15:29:13
【问题描述】:
我刚刚关注了这个文档https://rasa.com/docs/rasa/docker/deploying-in-docker-compose/
注意:我的助手在文件夹 mia-rasa-bot 上,他们的操作在 mia-rasa-bot/actions 上。
我的 docker-compose 看起来像:
version: "3.0"
services:
rasa:
image: rasa/rasa:2.1.2-full
restart: always
volumes:
- ./mia-rasa-bot:/app
ports:
- 5005:5005
command:
- run
depends_on:
- app
app:
build:
context: ./mia-rasa-bot/actions
ports:
- 5055:5055
volumes:
- .:/bot/actions
networks:
default:
但是当我执行 curl 时:
curl -XPOST http://localhost:5005/webhooks/rest/webhook -H "Content-type: application/json" -d '{"sender": "test", "message": "hello"}'
我得到错误:
curl: (56) Recv failure: Connection reset by peer
谁能帮我解决这个问题?
【问题讨论】:
标签: docker docker-compose rasa-nlu rasa