Thursday, March 7, 2019

Using PostgreSQL instead of MySQL , low memory required (Docker images)

In case for testing purposes a relational database is needed and do not have a lot of memory free I have done a test using Mysql docker image and PostgreSQL image. PostgreSQL has an alpine image wich MySQL at the moment does not.

The memory consumption is much less for PostgreSQL as can be seen below:

For MySQL one:



For PostgreSQL:




To run postgres with docker command execute:

 docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_USER=user -e POSTGRES_DB=database -d postgres:alpine