Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 552 Bytes

deps-mongo.md

File metadata and controls

26 lines (22 loc) · 552 Bytes

MongoDB

As a storage of users, rooms, messages, calls etc, we will be using MongoDB.

We will rely on the official MongoDB Docker image:

docker run -d --name mongo \
    --restart=always \
    -p 27017:27017 \
    -v mongo_data:/data/db \
    mongo

# attach mongo container to backend network
docker network connect backend mongo

Make sure you create a db user for your mongodb e.g.

db.createUser(
  {
    user: "roomler",
    pwd: "super_secret",
    roles: [ { role: "readWrite", db: "roomlerdb" } ]
  }
)