MongoDB is a cross-platform, open source NoSQL database where data is stored in JSON-like documents. Our stack provides a secure, containerized environment on EC2 providing portability and scalability.
MongoDB is a document database that stores JSON-like documents on disk. For this reason it is recommended you choose a storage optimized instance type. When launching your instance, provide the following security group rules:
- TCP, 22, 22, YOUR-IP-ADDRESS*
- TCP, 27017, 27017, EXTERNAL-SERVER-CONNECTING**
- TCP, 8081, 8081, YOUR-IP-ADDRESS*
* Always lock-down the SSH port to a single IP address. Opening your SSH port to the world i.e. `0.0.0.0/0` is a security risk and can compromise your instance.
** If you want an external server to connect to MongoDB, add the IP address here, you shouldn't leave this open to the world since it opens up security vulnerabilities to the MongoDB instance. You can also leave this rule out if you want to simply use the MongoDB locally on the same server instance. This is only required if you want an external server connecting to the instance.
CREDENTIALS AND PASSWORDS
All AppXen instances auto-generate passwords upon first boot. You can locate the credentials within the EC2 console. Right click on your instance and view the instances system log, you will find the docker stack output that contains auto-generated passwords in the log (see below for example), from which you can copy/paste, and login to web administration applications.