@ggabor When changing mongo by localhost, i have got this error
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [Errno 111] Connection refused
and when i put mongo, i got this error$
pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -2] Name or service not known
Interesting. I use the details what I gave you and it works fine for me. Did you add the database name?
I may be shooting blind here but is your mongod running? Under Windows you can check it in the task manager (you can open it by pressing alt+ctrl+del and selecting Task Manager from the list) under the Services tab. Check if MongoDB’s status is Running. If not, you need to restart it by right-clicking on it and selecting Restart from the popup menu.
Looks like you’re trying to use docker-compose file. Do you mind copying your file and pasting for more details?
Just make sure you put the depends_on parameter in the docker-compose.yml for the container you want mongo container to be accessible from. And then retrain your bot.