Docker Volume Replication

I want to achieve the Replication concept for docker volumes.

I am working on PostgreSQL database with docker .

Is it possible to achieve the replication of docker volume for the PostgreSQL database ?

You don’t replicate volumes. Postgresql replicates data as database engines usually do and you create volumes for each instance.

“Volume-level replication” is mentioned on the second page, but I don’t think that would be a secure way to replicate. I am not a database engineer, so anyone who is, feel free to correct me, although the article says too:

However, the disk-mirroring approach to PostgreSQL replication needs you to replicate both WAL log and table data. Since each write to the database now needs to go over the network synchronously, you can’t afford to lose a single byte, as that could leave your database in a corrupt state.