Overview

MongoDB is a document-oriented NoSQL database that stores flexible JSON-like records. On DockerCP it runs as a managed Docker container with persistent volumes, environment variables, domain routing, and one-click SSL. Once it is running, you can attach domains, issue SSL certificates, inspect logs, and monitor resource usage directly from the panel.

Docker image mongo:7
Default port 27017
Deployment type docker image
Recommended resources 2 CPU · 2 GB

How deployment works in DockerCP

This template gives DockerCP the deployment metadata needed to create a service, prepare runtime variables, map persistent storage, expose the internal port, and connect a public domain with SSL when required.

  1. Create or select a project where the service belongs.
  2. Review the Docker image, tag, default port, environment variables, and volume mappings.
  3. Deploy the service and check logs until the application is healthy.
  4. Attach a domain or subdomain when the application must be available publicly.
  5. Enable HTTPS and verify the final browser response.

Configuration

Environment variables

Variable Default / guidance
SERVICE_PORT 27017

Persistent volumes

Volume Mount path
mongodb_data /var/lib/data

Commands

DockerCP handles deployment from the panel, but understanding the equivalent Docker commands helps users debug services with more confidence.

docker pull mongo:7
docker ps --filter "name=mongodb"

docker logs --tail=100 mongodb

DNS and SSL checklist

Step Expected result
Add A or CNAME record The domain points to the DockerCP server or configured target.
Attach domain to service The service is reachable through the selected hostname.
Enable HTTPS The certificate becomes active and redirect to HTTPS can be enabled.

Screenshots

Panel previews for the MongoDB template: how deployment, the running service, and its key details look inside DockerCP.

MongoDB deployment form inside the DockerCP panel.
Document database container with connection details.
Document collections and storage inside the database.

Troubleshoot

  • Confirm the Docker image and tag exist.
  • Confirm the selected internal port matches the application port.
  • Confirm required variables such as database URL, app URL, and credentials are set.
  • Check service logs after the first deployment.
  • Verify DNS before requesting or renewing SSL certificates.