Is Docker with PostgreSQL safe enough to store data? Are there any constraints?

You may take a look of the discussions in another question How does Docker Swarm handle database (PostgreSQL) replication?.

Hope it helps.