docs
  • Overview
  • 🐍 PYTHON
    • Type Hints
    • PEP8 Style Guide for Python Code
    • 🏡Pipenv
    • Pathlib
  • 🕸Django
    • 🗄models
      • 🎯Best Practices
      • 🚦Django Signals
    • ⚙️ settings
    • DRF
      • Serializer
      • Authentication
      • Permissions
      • Viewsets
    • Testing
      • Faker and Factory Boy
    • 🧪Test Coverage
    • 💦Python-Decouple
    • Django Tips:
    • 💾Django ORM Queryset
    • Custom Exceptions
    • Celery
    • Resources
  • Deploy
    • 🚀Django Deployment
    • 🔒Setup SSL Certificate
  • 💾Database
    • MongoDB
  • 🛠️DevOps
    • 🖥Scripting
      • A First Script
      • Loops
      • Test
      • Variables
      • External programs
      • Functions
    • Command Line Shortcuts
    • Basic Linux Commands
    • 🎛Microservices
    • 🐳Docker
      • Docker Commands
      • Docker Compose
      • Django project
    • Kubernates
  • 📝Software IDE
    • EditorConfig
    • Linters
    • VsCode
Powered by GitBook
On this page
  • What is Docker Compose?
  • Building Blocks of Docker Compose

Was this helpful?

  1. DevOps
  2. Docker

Docker Compose

Introduction to Docker Compose

What is Docker Compose?

Compose is a tool for defining and running multi-container Docker applications. With Compose, we use a YAML file to configure our application’s services. Then, with a single command, we create and start all the services from our configuration.

  • A tool for defining and running multi-container Docker applications

  • With Compose we use a YAML file to configure our application's services

  • Compose works in environments: production, staging, development, testing, as well as CI workflows.

  • With a single command, we can create and start all the services from our configuration.

Docker Compose is a 3 steps process

  1. Define our app's environment with a Dockerfile so it can be reproduced anywhere.

  2. Define the services that make up our app in docker-compose.yml so they can be run together in an isolated environment.

  3. Run docker-compose up and Compose starts and runs our entire app.

$ docker-compose up

Building Blocks of Docker Compose

PreviousDocker CommandsNextDjango project

Last updated 4 years ago

Was this helpful?

🛠️
🐳