This article is about Codeship Basic.

MongoDB

You will need about one minute to read this article.

MongoDB 2.6.4 runs on the default port 27017 and doesn’t require any credentials.

Other Versions

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 3.6.0, set that version as an environment variable in your project or add this in the Setup Commands:

export MONGODB_VERSION=3.6.0

Next, add this command to your Setup Commands and the script will automatically be called at build time. Note, this script will automatically start MongoDB on port 27018 as the default port is taken by the default MongoDB version above. Your application will need to point to the updated port number.

\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/mongodb.sh | bash -s

Need more help?

You can post on Stack Overflow using the tag #codeship or contact our Helpdesk.
We also have a couple of code examples and sample projects available for you to get started with.

Was This Article Helpful?

Do you think we need to improve this article? If so, please submit our feedback form to help us improve this article!