无法连接Docker容器中的nlu
我正在尝试与docker一起运行Botpress。我将Dockerfile设置如下:无法连接Docker容器中的nlu,docker,artificial-intelligence,botpress,Docker,Artificial Intelligence,Botpress,我正在尝试与docker一起运行Botpress。我将Dockerfile设置如下: FROM botpress/server:v11_9_5 ADD . /botpress WORKDIR /botpress CMD ["./bp"] 构建映像后,我运行docker运行我的_image:latest启动我的botpress。但是,它无法连接到Duckling服务器 根据日志 03:20:32.917 Mod[nlu] Couldn't reach the Duckling server ,
FROM botpress/server:v11_9_5
ADD . /botpress
WORKDIR /botpress
CMD ["./bp"]
构建映像后,我运行docker运行我的_image:latest
启动我的botpress。但是,它无法连接到Duckling服务器
根据日志
03:20:32.917 Mod[nlu] Couldn't reach the Duckling server , so it will be disabled.
For more informations (or if you want to self-host it), please check the docs at
https://botpress.io/docs/build/nlu/#system-entities
[Error, connect ECONNREFUSED 127.0.0.1:8000]
STACK TRACE
Error: connect ECONNREFUSED 127.0.0.1:8000
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1158:14)
我的nlu.json设置如下:
{
"$schema": "../../assets/modules/nlu/config.schema.json",
"confidenceTreshold": 0.7,
"ducklingURL": "https://duckling.botpress.io",
"ducklingEnabled": true,
"autoTrainInterval": "30s",
"preloadModels": false,
"languageModel": "en",
"fastTextOverrides": {}
}
Duckling在使用Docker映像时与Botpress捆绑在一起(并且在启动Botpress时预期会启动)。有一个环境变量告诉它使用本地版本的duckling 如果直接运行映像,两个进程将同时启动 这里有两个关于如何运行这两种方法的示例: 基本上:
command: bash -c "./duckling -p 8000 & ./bp"
Duckling在使用Docker映像时与Botpress捆绑在一起(并且在启动Botpress时预期会启动)。有一个环境变量告诉它使用本地版本的duckling 如果直接运行映像,两个进程将同时启动 这里有两个关于如何运行这两种方法的示例: 基本上:
command: bash -c "./duckling -p 8000 & ./bp"