Hi all, I’m trying to deploy my RASA chatbot with Docker and so far it looks like it is up and running.
However, when I make a POST request with Postman to the rasa-server endpoint I get this error “Method POST not allowed for URL”
The post I make looks like this:
{
"sender": "test_user",
"message": "Hi there!"
}
Also when I try to access it on my website I don’t get a response.
I don’t know whether it helps but I also provide my docker-compose.yml for reference:
version: '3.7'
services:
mongodb:
image: mongo:latest
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: ***
MONGO_INITDB_ROOT_PASSWORD: ***
ports:
- "27017:27017"
command: mongod
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
rasa-server:
image: rasa-bot:latest
working_dir: /app
build: "./"
command: bash -c "rm -rf models/* && rasa train && rasa run --enable-api --cors \"*\" -p 5006 --debug"
ports:
- '5006:5006'
public: true
networks:
- all
# depends_on:
# - action-server
environment:
MONGO_DATABASE_URL: ***
MONGO_ROOT_USERNAME: ***
MONGO_ROOT_PASSWORD: ***
rasa-actions-server:
image: rasa-bot:latest
working_dir: /app
build: "./"
command: ["rasa", "run", "actions"]
ports:
- '5055:5055'
networks:
- all
networks:
all:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
Hope someone can help me with that! Many thanks in advance!