Difficulty: beginner
Estimated Time: 15 minutes

In this Lab we will learn about Docker Compose.

You've completed your Docker Compose Lab Exercise!

Docker Compose

Step 1 of 4

Step 1 - Creating Docker Image

In this step, we will create Dockerfile. To complete this step, you need to complete following tasks:

Task : Create Dockerfile

To complete this task, you need to create Dockerfile which contains following steps:

  • Build an image starting with the Python 3 image.
  • Set the working directory to /code.
  • Install the Python dependencies (Django).
  • Copy Django app.py into the path /code in the image.
Dockerfile
docker-compose.yml