Pre-requisites:
-
Ubuntu machine
-
Docker installed into it (sudo apt install docker.io)
Steps:
- Create a folder and get into it
• mkdir <folder_name>
• cd <folder_name>
- Create a yaml file
• sudo nano docker-compose.yml
- Build the docker compose file:
• sudo docker-compose up -d
- Ensure the containers are running:
• sudo docker ps