Return to site

DEVOPS: Docker compose or how to run multiple containers๐Ÿ“ฆ๐Ÿ“ฆ๐Ÿณ

ยท devops

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.

โ€•๐‚๐ก๐ž๐œ๐ค๐ข๐ง๐  ๐ญ๐ก๐š๐ญ ๐ญ๐ก๐ž ๐œ๐จ๐ง๐ญ๐š๐ข๐ง๐ž๐ซ๐ฌ ๐š๐ซ๐ž ๐ข๐ง๐๐ž๐ž๐ ๐ฎ๐ฉ ๐š๐ง๐ ๐ซ๐ฎ๐ง๐ง๐ข๐ง๐ .๐Ÿ•ต๏ธโ€โ™‚๏ธ

๐‘‘๐‘œ๐‘๐‘˜๐‘’๐‘Ÿ ๐‘๐‘ 

All Posts

Almost doneโ€ฆ

We just sent you an email.ย Please click the link in the email to confirm your subscription!