Failed to use Duckling server when using docker-compose

docker-compose.yml

version: '3.0'
services:
  rasa:
    image: <rasa-server>
    ports:
      - 5005:5005
    command:
      - run
      - --cors
      - "*"
      - --enable-api
  action-server:
    image: <action-server>
    expose: 
        - 5055
  duckling-server:
    image: rasa/duckling:latest
    ports:
      - "8000:8000"
    command: ["duckling-example-exe", "-p", "8000", "--no-access-log", "--no-error-log"]

In config.yml I tried both - name: DucklingEntityExtractor url: http://duckling:8000 and - name: DucklingEntityExtractor url: http://localhost:8000

I only have action_endpoint: url: "http://action-server:5055/webhook" in endpoints.yml.

I do see quack in localhost:8000, my rasa-server can’t connect with duckling

This is a docker-compose issue. You’re duckling server name is duckling-server - the name you’ve chosen for the docker-compose service. config.yml should specify http://duckling-server:8000 or you can change the name of the service in your docker-compose.yml file.

1 Like

Oh yeah I should’ve realize that since action server is the same, my bad.