You will need about one minute to read this article.
MongoDB 3.6.3
runs on the default port 27017 and doesn’t require any credentials.
If you need to install a different version or use a custom configuration, please see this script. This script supports MongoDB 3.0.0 and above.
For example if you want to install 4.0.6, set that version and port number as environment variables in your project or add this in the Setup Commands:
export MONGODB_VERSION=4.0.6
export MONGODB_PORT=27017
Next, add these commands to shutdown the default MongoDB instance and install the new version.
sudo mongod --dbpath /var/lib/mongodb --shutdown
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/mongodb.sh | bash -s
Contact our support team or post on Stack Overflow using the tag #codeship
. Did you check the status page and changelog?
There are also several code examples and sample projects available for you to get started with.
Does this article need improvement? If so, please send feedback or submit a pull request!