MongoDB
Official PresetlatestCategory: Databases & BaaS
Overview
MongoDB stores data in flexible, JSON-like documents, meaning fields can vary from document to document and data structure can be changed over time. The document model maps to the objects in your application code, making data easy to work with. On tug.sh, MongoDB runs with volume mounts for continuous persistence and authentication enabled by default.
Primary Use Cases
Modern JavaScript/TypeScript applications (MERN, MEAN stack)
Catalogs, content repositories, and user profile management
Rapid prototyping where data schemas evolve frequently
IoT sensor ingestion and telemetry event logging
Key Features
- Intuitive JSON/BSON document data model
- Powerful aggregation pipelines for analytics and data transformation
- Ad-hoc queries, indexing, and real-time aggregation
- High availability with replica sets and automatic failover
- GridFS for storing large files and binaries
Container Specification
mongo:latest
latest
Automated Let's Encrypt (Caddy / Traefik)
Managed host volume mounts
How to Deploy MongoDB with tug.sh
Connect your Linux server
Run the 1-line tug.sh agent install command on any Ubuntu, Debian, or Rocky Linux VPS.
Select MongoDB from the Marketplace
Pick your domain name, configure custom environment variables if needed, and choose your persistent storage folder.
Click Deploy & Go Live
tug.sh pulls the container, sets up HTTPS certificates, configures the reverse proxy, and boots the service in under 60 seconds.
Deploy on Your Server
Experience effortless self-hosting. Deploy MongoDB on Hetzner, DigitalOcean, or your home lab with zero maintenance headaches.
More in Databases & BaaS
PostgreSQL
The world's most advanced open-source relational database with ACID compliance, JSONB support, and extensive extensions.
Redis
Blazingly fast in-memory data structure store used as a cache, message broker, and real-time streaming engine.
MySQL
The world's most popular open-source relational database powering WordPress, Drupal, and enterprise web applications.
RabbitMQ
Extremely robust, multi-protocol message broker and queue server with a built-in web management console.