
The webserver service will use the nginx:alpine image.

In this tutorial, we have only specified a single service called webserver. Please follow this link to learn more about Docker Compose versioning.Īfter the version number, we have the services block that contains the services that make up the environment. The docker-compose.yml file begins with the version number that tells Docker Compose which configuration version we are using. This makes it globally accessible as docker-compose: It downloads the latest release (1.28.5) and saves the executable in the /usr/local/bin/docker-compose directory. You can find out the latest version from the releases page, at the time of writing this tutorial, the latest version is 1.28.5.įirst, log in to your Ubuntu server with the non-root sudo user and enter the following command. We will be downloading the latest stable version of Docker Compose from its official GitHub repository.
HOW TO INSTALL CURL IN UBUNTU 20.04 HOW TO
Please refer to this tutorial on how to install and operate Docker on Ubuntu 18.04. Follow this tutorial to configure your sudoers file. Here is a step-by-step tutorial to help you set up your Ubuntu server. You should also have a non-root user with sudo privileges. PrerequisitesĪs this is a hands-on tutorial, you should have an installation of Ubuntu 20.04 as your initial operating environment. In this tutorial, we will show you how to install, configure, and get started with Docker Compose on Ubuntu 20.04. Once you have defined the services, you can fire up all of them with a single command. The YAML file contains definitions for the application services and how they can share data volumes and networks. Docker Compose allows developers to run multi-container Docker applications using rules defined in a YAML file.

Thanks to a tool called Docker Compose, this becomes an easy task. You have to ensure they communicate, start and shut down at the same time. While splitting an application into multiple services is definitely great, it comes with the overhead of managing several containers. Furthermore, it can be served independently giving room for scaling. This portability feature allows developers to modularize their applications into isolated services.
HOW TO INSTALL CURL IN UBUNTU 20.04 SOFTWARE
This can be attributed to Docker which is a container platform that simplifies the management of processes inside containers.Ĭontainers are lightweight, virtualized, portable, software-defined standardized environments that allow the software to run in isolation from other software running on the physical host machine. Containerization has greatly picked up momentum in the software tech space over recent years.
