Skip to content

Network Automation

My journey with Network & Cloud Automation

Menu
  • Beginner
  • DevOps-NetDevOps
  • Network Automation
    • Docker
    • Python Libraries
      • NAPALM
      • Netmiko
      • Jinja2
      • Scrapli
      • Yang
  • Cloud Automation
    • Terraform
  • Python 🐍 Tips and Tricks
Menu

Docker for Network Engineers Part V – Docker Compose

Posted on September 16, 2021September 9, 2021 by Gurpreet Kochar

In the previous post about Dockerfiles, we saw how to use a YAML file to define the template of the docker containers/images and use those set of instructions to build and distribute your containers. However, what if the application that you are writing has multiple components to it.

For example:- You wrote a device monitoring web dashboard using flask. This application will have a core flask framework application, a database, may be another module that connects to multiple services to exchange data. In the world of docker, it is always recommended to have one container do one particular task but do it perfectly. So your application might be composed of 2-3 containers each container doing a specific task.

Docker Compose allows you to programmatically manage multi container applications just like a Dockerfile does it for a single container so that all container look like a single service. These tiny containers/services are often known as microservices. Another term that we get to see a lot these days whenever you talk about docker.

Let’s see some basics of docker compose

If you are on windows / mac, docker-compose is pre installed as a part of docker desktop. For ubuntu and other linux distributions, you can find instructions on docker website.

╰─ docker-compose --version                                                  ─╯
Docker Compose version v2.0.0-rc.1

Know someone who may benefit? Share this:

  • Tweet
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to email a link to a friend (Opens in new window) Email
  • More
  • Click to print (Opens in new window) Print
  • Click to share on Reddit (Opens in new window) Reddit
  • Share on Tumblr
  • Pocket

Like this:

Like Loading...

Related

1 thought on “Docker for Network Engineers Part V – Docker Compose”

  1. Pingback: Netbox Docker Installation [Quick and Easy] – Network Automation

Leave a ReplyCancel reply

All Blog Posts
My Resume

Upcoming Posts

Sorry - nothing planned yet!

Recent Posts

  • How to backup configuration to TFTP Server using Ansible – Part II
  • How to backup network devices using Ansible – Part I
  • Netmiko SSH Proxy/JumpServer
  • A short note on SASE
  • Understanding Ansible

Recent Comments

  1. Jack on Multithreading with Python for Network Engineers
  2. LifeCanvas on [Theory] Multithreading vs Multiprocessing vs AsyncIO
  3. Jasper Horng on Netmiko SSH Proxy/JumpServer
  4. asdfasdf on Python API Using FASTAPI – UPDATE – PUT – PATCH – Part V
  5. Gurpreet Kochar on Python Scrapli AsyncIO Usage

Archives

  • September 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
Topic Request / Suggestion
Loading
© 2025 Network Automation | Powered by Minimalist Blog WordPress Theme
 

Loading Comments...
 

    %d