postgresql does not store data in volume
Summary
All data are stored in database but in container filesystem not in mounted volume.
Steps to reproduce
Check size of mounted volume - it is zero bytes.
Expected behavior
All psql data should be in mounted volume.
Actual behavior
Data are stored inside container
Possible fixes
Mount volume /var/lib/postgresql/data
instead /var/lib/postgresql
.