# Rasa Crash! while using MongoDB as Tracker Store

**URL:** <https://forum.rasa.com/t/rasa-crash-while-using-mongodb-as-tracker-store/10603>\
**Category:** Getting Started with Rasa\
**Created:** [May 29, 2019, 12:49pm UTC](https://forum.rasa.com/t/rasa-crash-while-using-mongodb-as-tracker-store/10603 "2019-05-29T12:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MingL0L](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/mingl0l/32/2879_2.png) [@MingL0L](https://forum.rasa.com/u/MingL0L)\
**Post date:** [May 29, 2019, 12:49pm UTC](https://forum.rasa.com/t/rasa-crash-while-using-mongodb-as-tracker-store/10603/1 "2019-05-29T12:49:41Z")

</div>

I tried to add MongoDB as Tracker Store by following official doc:  
[http://rasa.com/docs/rasa/user-guide/running-rasa-with-docker/](http://rasa.com/docs/rasa/user-guide/running-rasa-with-docker/) Somehow rasa crashed!!

Steps:

1. ~$ docker -v && docker-compose -v

2. ~$ mkdir rasa && cd “$\_”

3. ~/rasa$ docker run -v $(pwd):/app rasa/rasa init --no-prompt

4. ~/rasa$ docker run -it -v $(pwd):/app rasa/rasa shell

Till here, everything works fine! Then I try to add a MongoDB as Tracker Store:

1. Create a docker-compose.yml:

```
mongo:image:mongoenvironment:MONGO\_INITDB\_ROOT\_USERNAME:rasaMONGO\_INITDB\_ROOT\_PASSWORD:examplemongo-express:image:mongo-expressports:-8081:8081environment:ME\_CONFIG\_MONGODB\_ADMINUSERNAME:rasaME\_CONFIG\_MONGODB\_ADMINPASSWORD:example
```

1. Modify endpoints.yml:\

tracker\_store:  
type: mongod  
url: mongodb://localhost:27017  
db: rasa  
username: rasa  
password: example

1. ~/rasa$ docker compose up

rasa version: 1.0.1

Could someone help me, please?

---

<div class="post-metadata">

**Author:** ![Tobias\_Wochinger](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tobias_wochinger/32/4580_2.png) [@Tobias\_Wochinger](https://forum.rasa.com/u/Tobias_Wochinger)\
**Post date:** [June 17, 2019, 8:26am UTC](https://forum.rasa.com/t/rasa-crash-while-using-mongodb-as-tracker-store/10603/2 "2019-06-17T08:26:27Z")

</div>

I think you have to replace the `localhost` with `mongo` in your endpoints.yml or expose the port of the mongo container.
