![Can someone please help me to make the postgres DB data location persistent using this dockerfile? : r/docker Can someone please help me to make the postgres DB data location persistent using this dockerfile? : r/docker](https://external-preview.redd.it/V3BVo4NYRLyqwLDBcRz1wJz4fct-Vlbg1RwJagQ6c8M.jpg?auto=webp&s=ccdc2d2a3269fa8a0c5b87899819bf8b3c5ecfcb)
Can someone please help me to make the postgres DB data location persistent using this dockerfile? : r/docker
![Running Django + PostgreSQL containers and persisting data with Docker | by Vinh Le | Shot code | Medium Running Django + PostgreSQL containers and persisting data with Docker | by Vinh Le | Shot code | Medium](https://miro.medium.com/max/1400/1*b1ZgzxJUWGiuNkCAx5WVMw.jpeg)
Running Django + PostgreSQL containers and persisting data with Docker | by Vinh Le | Shot code | Medium
![Scale-Up and Load-Balance a Spring-Boot MicroService With Docker-Compose, Persist Data and Enable Netflix Tools Like EUREKA and ZUUL API Gateway (PART 2) | by Vutlhari Ndlovhu | Medium Scale-Up and Load-Balance a Spring-Boot MicroService With Docker-Compose, Persist Data and Enable Netflix Tools Like EUREKA and ZUUL API Gateway (PART 2) | by Vutlhari Ndlovhu | Medium](https://miro.medium.com/max/688/1*fbc37AUgcL9U9BiQX4CDiw.png)
Scale-Up and Load-Balance a Spring-Boot MicroService With Docker-Compose, Persist Data and Enable Netflix Tools Like EUREKA and ZUUL API Gateway (PART 2) | by Vutlhari Ndlovhu | Medium
![Docker Containers and Database Cloning for DBAs, Data Governance, and IT Decision Makers: An Introduction - DATAVERSITY Docker Containers and Database Cloning for DBAs, Data Governance, and IT Decision Makers: An Introduction - DATAVERSITY](https://dv-website.s3.amazonaws.com/uploads/2018/02/dockers-pt1_pic3.png)
Docker Containers and Database Cloning for DBAs, Data Governance, and IT Decision Makers: An Introduction - DATAVERSITY
Using volumes for persistent data:'initdb: directory "/var/lib/postgresql/ data" exists but is not empty' · Issue #263 · docker-library/postgres · GitHub
![Mount volumes to persist data in local & initialize database in Docker – Blogs, Ideas, Train of Thoughts Mount volumes to persist data in local & initialize database in Docker – Blogs, Ideas, Train of Thoughts](https://belowthemalt.files.wordpress.com/2021/12/image.png)