Dockerize Django App with PostgreSQL with Example – Beginner Tutorial



Dockerize Django App with PostgreSQL with Example – Beginner Tutorial

Dockerize Django App with PostgreSQL with Example - Beginner Tutorial

In this video, we will dockerize django app with PostgreSQL database. We will use docker to create a multi-container setup where one container will host Django application and other container will host PostgreSQL.
We will use docker-compose to set up multi-container environment.
A docker container does not persist data by default, that means our PostgreSQL will lose data on container restart if we do not do any additional configuration. We will see how we can persist data in a Docker container.
By the end of this tutorial, you should be able to use docker to create a multi-container setup with Django and PostgreSQL.

You can find the base for a Django+PostgreSQL project here: https://github.com/Vysh01/DjangoPostgreSQLDocker/

Follow us on social media:
Instagram: https://instagram.com/thecodecity
Twitter: https://twitter.com/thecodecity

#docker #django #dockerdjango

Comments are closed.