MongoDB - NoSQL document database
Everything you need to deploy Mongodb with BlastDock
One command deployment
Production-ready security
Customizable settings
Ready to scale up
blastdock init
Initialize new project
blastdock deploy
Deploy the application
blastdock status
Check deployment status
blastdock logs
View application logs
Get Mongodb up and running in minutes with our one-click installation.
First, install BlastDock using pip (recommended):
pip install blastdock
Then deploy Mongodb with:
blastdock init mongodb
Interactive mode:
blastdock init mongodb -i
blastdock templates
List available templates
blastdock status project
Check deployment status
blastdock logs project
View application logs
blastdock stop project
Stop deployment
Customize your Mongodb installation with these configuration options.
MongoDB port
Mongo Express port
Root username
Root password
Initial database
Complete Docker Compose configuration for Mongodb deployment.
version: '3.8'
services:
mongodb:
image: mongo:latest
container_name: {{ project_name }}_mongodb
restart: unless-stopped
ports:
- "27017"
environment:
MONGO_INITDB_ROOT_USERNAME: {{ root_username }}
MONGO_INITDB_ROOT_PASSWORD: {{ root_password }}
MONGO_INITDB_DATABASE: {{ database }}
volumes:
- /data/db
networks:
- mongodb_network
mongo-express:
image: mongo-express:latest
container_name: {{ project_name }}_mongo-express
restart: unless-stopped
depends_on:
- mongodb
ports:
- "8081"
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: {{ root_username }}
ME_CONFIG_MONGODB_ADMINPASSWORD: {{ root_password }}
ME_CONFIG_MONGODB_URL: mongodb://{{ root_username }}:{{ root_password }}@mongodb:27017/
networks:
- mongodb_network
volumes:
mongodb_data:
driver: local
networks:
mongodb_network:
driver: bridge