Hi all, I am trying to run rasa using docker-composse that has three services: Rasa, Django custom actions server and the database.
However, I have the following error:
Rasa.core.tracker_store - Could not create tables: (psycopg2.OperationalError) could not connect to server: Connection refused Is the server running on host “127.0.0.1” and accepting TCP/IP connections on port 5432?
The same error raised when the web services for my action server is trying to connect to the database.
Here is the content of my docker-compose file:
version: '3.0' services: postgres: image: postgres:latest volumes: - pg-db-data:/var/lib/postgresql/data rasa: image: rasa/rasa:latest-full ports: - 5005:5005 volumes: - .:/app command: > run --model bot/models/20190926-122649.tar.gz --endpoints bot/endpoints.yml --credentials bot/credentials.yml --enable-api --debug web: volumes: - .:/app build: . command: python manage.py runserver ports: - "8000:8000" depends_on: - postgres volumes: pg-db-data:
What I suspect is that it is an environment error. I tried to change the port from “127.0.01” to “0.0.0.0” where the postgres service indicated rasa is running, but still nothing. I tried many other things, but sill not working Is someone, have a guess of how I can solve that ?
Thanks in advance.