# Cockpit doesnt use mongo

**URL:** <https://discourse.getcockpit.com/t/cockpit-doesnt-use-mongo/475>\
**Category:** Support\
**Created:** [December 20, 2018, 3:52pm UTC](https://discourse.getcockpit.com/t/cockpit-doesnt-use-mongo/475 "2018-12-20T15:52:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitca](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@amitca](https://discourse.getcockpit.com/u/amitca)\
**Post date:** [December 20, 2018, 3:52pm UTC](https://discourse.getcockpit.com/t/cockpit-doesnt-use-mongo/475/1 "2018-12-20T15:52:17Z")

</div>

Hi,  
I was following the docker tutorial to use mongo )[https://getcockpit.com/documentation/reference/docker](https://getcockpit.com/documentation/reference/docker)),  
built the image with the php described, and use the docker-compose.yml.  
the issue is that cockpit is using sqlite …  
any idea what is missing with the configuration in order for cockpit use the mongo ?  
Thanks,  
Amit

---

<div class="post-metadata">

**Author:** ![pauloamgomes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/pauloamgomes/32/48_2.png) [@pauloamgomes](https://discourse.getcockpit.com/u/pauloamgomes)\
**Post date:** [December 24, 2018, 12:20pm UTC](https://discourse.getcockpit.com/t/cockpit-doesnt-use-mongo/475/2 "2018-12-24T12:20:21Z")

</div>

Hey @amitca, I;m not using the default docker, instead I have in my docker composer:

```auto
  mongo-cockpit:
    image: mongo
    container_name: "cockpit_mongo"
    environment:
      MONGO_INITDB_DATABASE: "cockpitdb"
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: root

```

and in the config.yaml I have my connection string as:

```auto
database:
  server: mongodb://mongo-cockpit:27017
  options:
    db: cockpitdb
    username: root
    password: root

```

hope that helps
