MongoDB is one of the most popular open-source document-oriented NoSQL databases.
It means that efficient data storage and streamlined data retrieval in MongoDB will be in the form of document collections rather than tables.
A distinctive feature of NoSQL databases is the absence of a predefined data schema (structure). Therefore, documents with different structures can be stored in MongoDB within a single collection. At the same time, MongoDB architecture allows the carrying of effective sampling of data.
Beget VPS with pre-installed MongoDB is a ready-to-use MongoDB database server that requires no initial setup and is deployed on your virtual server. In addition, the benefits of MongoDB from Beget include the Web UI interface for database administration.
Installation package information
- Ubuntu 22.04
- Docker, latest
- MongoDB 8.0.5
- MongoDB PHP GUI
Installing and initial configuration of MongoDB
When creating a server, in addition to the standard parameters you will be asked to specify:
- The domain that will be used to access the MongoDB PHP GUI web interface.
If you don't have a domain in our system yet, we will provide you with a free technical domain .beget.app. A free SSL certificate will be issued and installed for the domain. - The name of the database administrator will be used for authentication.
- The database administrator's password.
- Administrator's Email to issue an SSL certificate.
Once the server is created, the installation and deployment of MongoDB will begin. It takes about three minutes. Once the MongoDB database deployment is complete, you can start working with the web interface.
Working with the MongoDB PHP GUI web interface
To log into the MongoDB NoSQL database web interface, go to https://mydomain.beget.app in your browser (mydomain.beget.app is the domain selected when you created the server).

To authenticate in the web interface after opening the form page, click the "I don't have a URI" link. Use this information as login credentials for MongoDB:
- User: the administrator login you set when you created the server (default is
admin). - Password: the administrator password that you set when you created your server.
- Host: the domain name you use.
You can leave the Port and Database lines blank.

After successfully authenticating into MongoDB, you can start using your web interface to create databases, collections, and import and export data. If necessary, refer to the project page on GitHub for more information about the interface features. Enjoy your work with the MongoDB document database!
Working with MongoDB from your application
To work with MongoDB deployed on your virtual server, you can use any of the tools and libraries you're used to.
from pymongo import MongoClient
def get_client():
username = "admin" # Administrator login
password = "*5Lj1Xl&" # Administrator password
host = "pohodudoor.beget.app" # Server address / domain name
database = "mydb" # Database name
return MongoClient(f"mongodb://{username}:{password}@{host}/{database}")
if __name__ == "__main__":
client = get_client()
print(repr(client))Execution result:
$ python3 mongodb_test.py
MongoClient(host=['pohodudoor.beget.app:27017'], document_class=dict, tz_aware=False, connect=True)We wish you good luck with MongoDB data governance.
FAQ
The MongoDB data files are located in /opt/beget/mongodb/data.
On your server, MongoDB is deployed with docker-compose. Follow these steps to restart the server and web management interface:
- Connect to your server via SSH:
ssh root@my_ip(my_ipis the IP address of your server). - Go to the container configuration directory:
cd /opt/beget/mongodb. - Restart the containers via docker-compose:
docker-compose restart.
