Category: Database, Data, Docker, container

If you are reading this, then you probably had issues previously or even now with database installations on your laptop on local development environment in general. Same with me, I had problems with running them consistently, cleaning them up or keeping different projects to work with the same database.

Meaning that for example to use a MongoDB locally you have to run MongoDB docker container, and guess what it is way easier than running MongoDB locally!

Here it is a lot easier because Mongo doesn’t require you to make a database name in advance you can do that with a connection string and schema is automatic, so you need a lot fewer configurations here, but again as with PostgreSQL you don’t have to have it installed locally, it is just a Docker container and you can just remove it anytime you want, or keep different versions running for different applications, or just change binding ports without even touching database configuration. It brings you a lot of comforts, but be aware that it might clean your data whenever you remove your container and you have to define separate Docker container volume to keep your data persistent.

Related Articles