DEV Community

Discussion on: How to Connect your Django App to a dockerized PostgreSQL and pgAdmin

Collapse
 
pmutua profile image
Philip Mutua • Edited

Hi Micheal thanks. I have a question I have seen some other examples where one does the following:

volumes:
      - ./data/db:/var/lib/postgresql/data

Enter fullscreen mode Exit fullscreen mode

Based on your example above in the docker-compose.yml file under the db service what is the difference?