Clean up code and update format on connection to the database
Replaced all env vars with one env var MONGO_URI
Also removed the now defunct env var MONGO_TYPE
The format to connect in your local environment will be:
MONGO_URI=mongodb://root:really_secure_password123@mongodb:27017
๐ญ Motivation and context
DocumentDb is no longer used and instead connect to a database cluster in Mongo Atlas
๐งช Testing
tested connection locally
โ Pre-approval checklist
[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
Clean up database connection
get_db()
function๐ฃ Description
Clean up code and update format on connection to the database Replaced all env vars with one env var
MONGO_URI
Also removed the now defunct env varMONGO_TYPE
The format to connect in your local environment will be:
MONGO_URI=mongodb://root:really_secure_password123@mongodb:27017
๐ญ Motivation and context
DocumentDb is no longer used and instead connect to a database cluster in Mongo Atlas
๐งช Testing
tested connection locally
โ Pre-approval checklist