Add as a dependency in your Appfile:
application {
name = "example-app"
dependency {
source = "github.com/withassociates/otto-mongodb"
}
}
Configure Rails app to use the containerized DB:
# config/mongoid.yml
development:
sessions:
default:
database: example_db
hosts:
- mongodb.service.consul:27017