

Setting up our applicationįor this tutorial, I have set up a starter repository containing the source code of an in-development polling application written in Django.
#Docker for mac docker compose install#
Linux and OSX users can install Docker for Linux and Docker for Mac respectively. Windows users can make use of docker after installing Docker Desktop for windows. To get started with setting up Docker on your computer, it’s recommended to follow the official documentation for your respective host OS.

It allows developers to easily pack, ship, and run any application as a portable, self-sufficient, and lightweight container, which can run almost anywhere. Introducing Dockerĭocker is a toolbox developed to enable you to create, manage, and run applications using containers. What are containers and why are they super cool?Ī container, when put in simple terms houses a development environment, i.e your application along with only the dependencies it needs to run.Ĭontainers enable you as a developer to package an application with its dependencies and move them from one computing environment to another without many breaking changes.īecause containerization is relatively more portable, scalable, and efficient, platforms like Docker are becoming a popular choice for developing applications day by day. Developers wanted a way to unify development and production environments which is where the idea of containerization came about. This process is known as virtualization.Īs time went on, a lot of developers began to see the downside of this process as it was more expensive (considering the time spent when making changes to accommodate a change in the operating system). Traditionally, if you were to deploy a web application to a server hosting service provider like DigitalOcean or Linode, you would need to set up a virtual machine or a virtual computer where you would then transfer your written code either via git, FTP, or other means. Visual Studio Code (or any text editor of your choice).To follow along with this tutorial, it is recommended to have the following installed on your computer: Setting up a Django app in a docker environment using a Dockerfile and docker-compose.At the end of this topic, you should be familiar with the following: This article introduces you to the concept of containerization with Docker while guiding you to containerize a simple Django web application. If you’ve been coding for a while now, you probably have heard of Docker or more fancy terms like containers. Containerizing a simple Django application with Docker and Docker Compose Aspiring ethical hacker and a WordPress evangelist. Saving the world one paragraph at a time. Oluwaseun Raphael Afolayan Follow Developer and digital growth hacker.
