Running database in docker container for production - is it advisable or not

We are currently running SonarQube 10.2 in a Docker container on Linux using a PostgreSQL 12 database on a Windows Server. We need to move the database, to Linux.

It would be so easy to run the database in a Docker container as well as opposed to install it on the system.
But is it advisable for production? What are the current recomendations for running a production database in Docker?

Regards, Vincent

Maybe some other users have an opinion about this – I wouldn’t say I’m very opinionated and to quote this Reddit thread:

As long as you have storage and backups strategy you’re good to go.

We have many users who deploy their database using Docker.