How to Setup Docker Compose on Ubuntu in Azure (2 Min Setup) Docker Engine / Containers / Images

Опубликовано: 05 Октябрь 2024
на канале: Cloud Infrastructure Services
1,697
15

How to Setup/Install Docker Compose on Ubuntu in Azure: Docker compose is a simple yet powerful tool that is used to run multiple containers as a single service.

For example, suppose you have an application which requires Nginx as a web server and PostgreSQL as a database service. In this case by docker-compose, you can create one single file (docker-compose.yml ) which will create both the containers as a single service without starting each separately.

The Compose file provides a way to document and configure all of the applications service dependencies (databases, queues, caches, web service APIs, etc). Using the Compose command line tool you can create and start one or more containers for each dependency with a single command (docker-compose up).

This video demonstrates how to setup/install Docker Compose on Azure.

Enjoy the Video.

⏰Timestamps⏰
00:00 Intro Docker Compose Ubuntu
00:22 Creating Docker Compose Ubuntu 20.04 VM
02:04 Connecting to SSH Terminal
02:39 Starting Docker Services
03:04 Run Docker "Hello-World" Image Container Template
03:30 Verify Docker-Compose Installation
03:43 Deploy Web-Application with Docker-Compose
04:48 Output of Web-Application Container
05:08 Outro Docker Compose

🔗 Deploy Docker Compose Server on Ubuntu Server 20.04 from Azure Marketplace listing:
https://azuremarketplace.microsoft.co...

🔗 How to Setup Docker Compose on Ubuntu on Azure Blog Post:
https://cloudinfrastructureservices.c...

🔗 Docker Compose Documentation (Getting Started / Basic Python Web-Application):
https://docs.docker.com/compose/getti...

Docker Compose Azure Features:
-Multiple isolated environments on a single Docker host
-Preserve volume data when containers are created
-Only recreate containers that have changed
-Variables and moving a composition between environments
-Docker Engine
-You can run Compose apps on a Swarm cluster