Containerizing a simple Django application with Docker and Docker Compose

By LogRocket Blog - 2021-01-04

Description

We'll create a Dockerfile in order to containerize a Django app and we''ll set up docker-compose through a docker-compose.yml file.

Summary

  • January 4, 2021 4 min read1289 If you’ve been coding for a while now, you probably have heard of Docker or more fancy terms like containers.
  • In order to make use of the features that Docker Compose provides us, create a docker-compose.yml file in the same root folder as your Dockerfile and add the following code in it: 3' This tells Docker what version of docker-compose should be used to run our file.
  • If you want to shut down the container, open a new terminal and run docker-compose down.

 

Topics

  1. Backend (0.17)
  2. Frontend (0.07)
  3. NLP (0.04)

Similar Articles

Introduction to Docker

By datastack.tv - 2020-09-24

Everything you need to know about Docker as a Data Engineer

Learning To Use Docker

By DEV Community - 2020-12-27

This is the second post in my series called "Demystifying Docker". While having read the first post i... Tagged with beginners, tutorial, devops, docker.