MongoDB Server
This free NautilusControl template sets up a MongoDB server on port 27017 with 1 GB of RAM recommended. This page covers the ports to open, hardware requirements, the Docker image, every setting you can change and step-by-step setup.
MongoDB at a glance
- Category
- Database (database)
- Docker image
- mongo:7.0
- Default version
- 7.0
- Ports
- 27017/TCP
- RAM
- 1 GB
- CPU
- 1 core
- Disk
- 20 GB
- Console
- Interactive console (stdin)
- Template version
- v1.0.0
MongoDB server ports
A MongoDB server built from this template listens on this port. Open it in your firewall so players and clients can connect.
| Port | Protocol | Used for |
|---|---|---|
| 27017 | TCP | MongoDB |
sudo ufw allow 27017/tcpMongoDB server requirements
These are the template's recommended starting values. Increase it as your data and number of connections grow.
Run MongoDB in Docker
The template uses the mongo:7.0 image, default version 7.0. NautilusControl pulls it automatically; to fetch it yourself:
docker pull mongo:7.0mongod --bind_ip_all --port {port}MongoDB settings (environment variables)
You can change these when you create the server or later in its settings.
| Variable | Default | What it does |
|---|---|---|
| MONGO_INITDB_ROOT_USERNAMErequired | admin | Root username for MongoDB |
| MONGO_INITDB_ROOT_PASSWORDrequired | empty | Root password — use a strong password |
| MONGO_INITDB_DATABASE | mydb | Initial database to create on startup |
Files and folders
/data/db— Data/data/configdb— Config
How to set up a MongoDB server with NautilusControl
Install NautilusControl
Install the NautilusControl panel and agent on the machine that will run the server. The installation guide covers it, and the 14-day free trial includes 1 node and 5 servers.
Import the MongoDB template
Download this template (a single JSON file) with the button above, then open Templates in NautilusControl and choose Import JSON.
Create the server
Create a new container and pick MongoDB. NautilusControl pulls
mongo:7.0, fills in the environment variables listed below, and creates the folders for you.Open the ports
Allow port 27017 through your firewall, and forward it on your router if people connect from outside your network.
Start it
Press Start and follow the startup log in the panel, then use the interactive console (stdin) for commands.
Server files come from www.mongodb.com.
Notes
NoSQL document database. Connect using: mongodb://user:pass@host:27017/dbname
MongoDB FAQ
What ports does a MongoDB server use?
This template uses port 27017 (MongoDB). Open it in your firewall and forward it on your router if players connect from outside your network.
How much RAM does a MongoDB server need?
The template recommends 1 GB of RAM, 1 core, 20 GB of disk space. Increase it as your data and number of connections grow.
Can I run MongoDB in Docker?
Yes. The template uses the Docker image mongo:7.0 (default version 7.0). NautilusControl pulls it and creates the container for you.
Is the MongoDB template free?
Yes. Every template in the Corallium Studios library is free to download. You need NautilusControl to deploy it; there is a 14-day free trial.