Skip to content

docker compose

sachin soman edited this page Apr 1, 2021 · 3 revisions
  • using version 3 of docker compose
  • How many services we will run, here we run 1 django
  • name the service as 'app'
  • build context is location from which docker-compose runs
  • map port from docker to local-host
  • volume allows us to get update from local to docker container in real time
  • map app directory to app directory in docker image
  • command to run application

run using docker-compose build

Clone this wiki locally