Docker Compose is used to run multiple containers as a single service.
For example, suppose you had an application which required NGNIX and MySQL,
you could create one file which would start both the containers
as a service without the need to start each one separately.
―𝐂𝐫𝐞𝐚𝐭𝐢𝐧𝐠 𝐘𝐨𝐮𝐫 𝐅𝐢𝐫𝐬𝐭 𝐃𝐨𝐜𝐤𝐞𝐫-𝐂𝐨𝐦𝐩𝐨𝐬𝐞 𝐅𝐢𝐥𝐞 ⚙
𝑠𝑢𝑑𝑜 𝑣𝑖𝑚 𝑑𝑜𝑐𝑘𝑒𝑟-𝑐𝑜𝑚𝑝𝑜𝑠𝑒.𝑦𝑚𝑙
―𝐑𝐮𝐧𝐧𝐢𝐧𝐠 𝐘𝐨𝐮𝐫 𝐅𝐢𝐫𝐬𝐭 𝐃𝐨𝐜𝐤𝐞𝐫-𝐂𝐨𝐦𝐩𝐨𝐬𝐞 𝐅𝐢𝐥𝐞🏃♂️💨
𝑠𝑢𝑑𝑜 ./𝑑𝑜𝑐𝑘𝑒𝑟-𝑐𝑜𝑚𝑝𝑜𝑠𝑒 𝑢𝑝
Once executed, all the images will start downloading and the containers will start automatically.
―𝐂𝐡𝐞𝐜𝐤𝐢𝐧𝐠 𝐭𝐡𝐚𝐭 𝐭𝐡𝐞 𝐜𝐨𝐧𝐭𝐚𝐢𝐧𝐞𝐫𝐬 𝐚𝐫𝐞 𝐢𝐧𝐝𝐞𝐞𝐝 𝐮𝐩 𝐚𝐧𝐝 𝐫𝐮𝐧𝐧𝐢𝐧𝐠.🕵️♂️