Docker Compose Tutorial

  Рет қаралды 418,474

Programming with Mosh

Programming with Mosh

2 жыл бұрын

Learn all about Docker Compose so you can orchestrate your services with confidence!
- Get the complete Docker course (zero to hero): bit.ly/3sO7Z5H
- Subscribe for more Docker tutorials like this: goo.gl/6PYaGF
⭐️ Want to learn more from me? Check out these links:
Courses: codewithmosh.com
Twitter: / moshhamedani
Facebook: / programmingwithmosh
Blog: programmingwithmosh.com
#Docker #DevOps
Docker is the de facto standard for building, shipping and running applications in a consistent manner. That's why most companies use it and are looking for developers with Docker skills. If you're looking for a career in software or DevOps engineering, you must have Docker on your resume. And not only that, you should know it well and be able to use it to effectively package and deploy your applications.

Пікірлер: 429
@RajKumar-ts7fk
@RajKumar-ts7fk 2 жыл бұрын
Finally the legend is back 😎
@programmingwithmosh
@programmingwithmosh 2 жыл бұрын
Thank you! Please support me by liking and sharing this video. :)
@RajKumar-ts7fk
@RajKumar-ts7fk 2 жыл бұрын
Learning is a continuous process
@tanveerahmad5996
@tanveerahmad5996 2 жыл бұрын
Absolutely mosh!..
@billvvoods
@billvvoods 2 жыл бұрын
Done :-)
@Sal-bm4mw
@Sal-bm4mw 2 жыл бұрын
@@programmingwithmosh Hello Sir! How can I Unsubscribe Code with Mosh? I've Completed My courses. Thanks a Lot!
@leahaimovich7221
@leahaimovich7221 5 ай бұрын
thank you!! where is the zip file you mantion in 5:54?
@Sarah-zj7ve
@Sarah-zj7ve 2 жыл бұрын
Just starting my coding journey and found your website and courses by accident. Couldn't be more thankful for what you have put together. You're such a gifted teacher! Learning SO much thanks to you!! :)
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
did you get the zip file?
@satadhi
@satadhi 21 сағат бұрын
@@edwinchiboko3737 yah dude where is the zip file
Жыл бұрын
You're the frickin' BEST teacher here, Mosh! Man, if I become a IT teacher one day, I hope I can be like you! You explain everything so clearly, you seem to understand what people need to get something. That comparision you did beetween json and yaml what GOD TIER. I bought you Redux course and IT WORTH EVERY CENT!
@nuttchokwittaya8225
@nuttchokwittaya8225 Жыл бұрын
How can you find the code?
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
did you get the zip file
@nothingwithoutthis5021
@nothingwithoutthis5021 2 жыл бұрын
I really enjoy and appreciate all your work, you make the world better with your courses where you combine all necessary knowledge and tools for programming. I really love programming and, for sure, you made me love it! Peace and Love from Ukraine!❤️
@kimiatahernejad5833
@kimiatahernejad5833 Жыл бұрын
Did you find the zip file?!!
@harishpalsande9084
@harishpalsande9084 2 жыл бұрын
I have learned everything from watching your video. You are my teacher I watch your video at least once a day. A lot of people are learning because of you Thank you very much 🙏
@isaacambi1914
@isaacambi1914 Жыл бұрын
I only appreciate your lectures after going through the ones done by others. This guy is a genius teacher.
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
did you get the zip file
@janekschleicher9661
@janekschleicher9661 Жыл бұрын
Regarding JSON vs YAML: It's not only about performance, but also about validation and security. If you, e.g. copy+move some lines from a JSON file to another location, most likely, the JSON will be corrupt and incorrect, and if not, it's very likely, the order didn't matter anywhere. That's good behaviour for anything that mainly computers operate, as such a copy+paste error easily happens while editing (or merging with git), but might not be reviewed by (many) humans, so might be undetected for a long time. In YAML, there is a good chance, randomly moving blocks around, the end result is a different, but still correct YAML. Indeed, that's such a common error, that for bigger projects you usually have to write an own linter for the yaml files checking e.g. if the keys are the expected ones. Regarding security: YAML specification is a bit bigger than XML, so it contains a lot of hard to implement and possible insecure options. That's why many first naive implementation of YAML parsers in programming languages were replaced over time by other parser only implementing a secure subset of YAML. (Or alternatively that's tackled by the custom linters you have to write anyway) There are some other subtle problems with YAML, e.g. your question of why you have to put "3.8" in quotes is because otherwise it would be detected as float und depending of whether can be represented in binary internally exactly or only close to it (indeed, 3.8f == 3.7999999523162841796875). The easiest way to enforce consistency is to demand that the version is always a string and not sometimes a string (3.8.0 == "3.8.0"), sometimes a float (3.8 == 3.7999999523162841796875) and sometimes an int (4 == 4). There are many more subtle possibilities to misinterpret the unquoted strings: Magic words like true or false are becoming booleans. A minus sign is very often interpreted as list start, several further characters like +, |, also have special meanings and so on. When in doubt, always put your strings into quotes, from a practical standpoint that the system should what we want to say in the yaml, even though readability is reduced. That's why, where high predictability is wanted, often enough different formats are used with less surprisings. E.g. HCL for Terraform, Programming languages for Pulumi, AWS CDK, ... or just toml/ini files. Anyway, the high readability, easy understanding and universal structure of YAML dominates pretty much every modern stack, so the solution to all the above problems are custom linters and performant YAML parsers (most often with an own subset or dialect). BTW, JSONs have disappointing also ambiguities that can even be exploited, e.g. the spec does not tell anything what should happen if a key is duplicated (which value to take). Different parsers handle that differently, and for the right combination, you can pass the validation done by the first parser to then inject some malicious (or just unintended, unwanted) behaviour to the second parser.
@weirnershittler6752
@weirnershittler6752 11 ай бұрын
Thanks for the info man
@faizanvanekar7882
@faizanvanekar7882 2 жыл бұрын
It would be great if you could make a course on Devops tools ( Open source tools ) with the CI /CD Pipeline.
@pheellomolokoli7384
@pheellomolokoli7384 2 жыл бұрын
You're a life saver Mosh, this is just what I was looking for💯
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
did you get the zip file
@potatocoder5090
@potatocoder5090 9 ай бұрын
Hello Mosh! Thank you for making these amazing tutorials. Could you please link the zip file that you are referring to in this video so that we can follow along? Thank you!
@touqeerhameed3435
@touqeerhameed3435 Жыл бұрын
Thank you so much for this wonderful tutorial
@korleone72
@korleone72 Жыл бұрын
I couldn't be more thankful for what you do!
@5335resan
@5335resan 2 жыл бұрын
I like your tuts very much dude. Simple but practical
@ahsaanali4512
@ahsaanali4512 2 жыл бұрын
This video cleared my doubts, love the content.
@kitersrefuge7353
@kitersrefuge7353 8 ай бұрын
Superb Mosh-jan. Thank you. I say this without prejudice. Content is fluid, it stops to point out significant landmarks without cluttering, and therefore the duration is also tolerable in this age of millisecond attention spans. I learned a lot and refreshed a lot.
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
did you get the zip file
@EruaMedia
@EruaMedia 2 жыл бұрын
my king mosh i love you so so much, you taught me how to be the best programmer big love from africa Ethiopia.
@programmingwithmosh
@programmingwithmosh 2 жыл бұрын
Thank you! Please support me by liking and sharing this video. :)
@atharvbudhe6756
@atharvbudhe6756 Жыл бұрын
@@programmingwithmosh Where is the Zip file? 5:56 ????
@samuinsaurralde2866
@samuinsaurralde2866 Жыл бұрын
Thanks for your excellent video!! Where I can download the files did you use in your examples?
@skippo566
@skippo566 2 жыл бұрын
I really enjoy ur videos with great understanding, I want to be a software developer but I don't know which programming language to learn first, and where to start 😶
@bjjblog
@bjjblog Жыл бұрын
0:00 Intro 0:27 Running Multi-container Apps (intro) 1:16 Installing Docker Compose 2:30 Cleaning Up our Workspace (delete containers and images) 5:39 The Sample Web Application 8:50 JSON and YAML Formats 13:00 Creating a Compose File 21:58 Building Images 25:38 Starting and Stopping the Application 27:49 Docker Networking
@hitsharnam3177
@hitsharnam3177 Жыл бұрын
Where is that bloody zip file?
@md.emranhossain9475
@md.emranhossain9475 Жыл бұрын
how can I get the ZIP file?
@levan7314
@levan7314 Жыл бұрын
where is zip? can you please link?
@hydtechietalks3607
@hydtechietalks3607 Жыл бұрын
You are AMAMAMAMAZING Mosh.. God Bless you for the free stuff!
@DrWebDev
@DrWebDev 2 жыл бұрын
Thank You Mosh! I'm gonna take your course!
@theghacker1824
@theghacker1824 2 жыл бұрын
You are the best teacher ever you explain once and I allredy understand.😄😄
@user-rj8yv5nz3f
@user-rj8yv5nz3f 9 ай бұрын
thank you Mosh for your high quality and amazing tutorials. wish you the best.
@liquidcode1704
@liquidcode1704 Жыл бұрын
Really appreciate your content Mosh!
@BradleyCrum82
@BradleyCrum82 2 жыл бұрын
Great work and thanks again! I like that VS Code editor color scheme. What is that called?
@kolcha
@kolcha 12 күн бұрын
at 5:50 you mentioned the zip, there is not zip file link in the video description.
@viniciuscardoso5271
@viniciuscardoso5271 2 жыл бұрын
Mosh we are so glad to see you're back
@AyCRanime
@AyCRanime 2 жыл бұрын
This was really helpful. Thank you.
@mickaeljacquot3845
@mickaeljacquot3845 Жыл бұрын
Really great videos , well explained , just awesome !
@tajbir6969
@tajbir6969 Жыл бұрын
If you are wondering why the version number is string, it's because version can be something like 3.8.1 which is not a number.
@bharat_thapa_
@bharat_thapa_ 2 жыл бұрын
I just want to let you know that your courses are top class. One improvement I would like to see in your course is the project you develop during the lectures. Even though *Vidly* is really a good project, I would like to see much complex project than that. Maybe an e-commerce project. Point is: you have tons of cool techniques to improve the quality of code which we can learn from your experience.
@tawfikelmouttaqi7415
@tawfikelmouttaqi7415 2 жыл бұрын
Where can I find the Vidly zip file ?
@eoinparkinson4224
@eoinparkinson4224 Жыл бұрын
Hi, what are your terminal configurations for the highlighted autocomplete? Thanks.
@waleabdulhamid4522
@waleabdulhamid4522 2 жыл бұрын
Hey Mr Mosh.....thank you for everything you are doing?? I want to know how I can go about registering for your course and how much it costs
@jackq9197
@jackq9197 Жыл бұрын
Thanks for this wonderful tutorial. I'm trying to follow however could not find the link to download the zip file.
@itshamiiid
@itshamiiid Жыл бұрын
thanks Mosh. as always, great tutorial.
@danielmaldonado5954
@danielmaldonado5954 Жыл бұрын
Congrats ! The course is awsome ! Thank you :)
@dronefilmsgermany
@dronefilmsgermany Жыл бұрын
Great Video. I am new to docker compose. I tried the same steps as per your docker compose file but gut this error. nable to prepare context: path "./frontend" not found does VS Code follow indentation?
@amirhoseinjavid8075
@amirhoseinjavid8075 Жыл бұрын
so proud of You Mosh ! I'm from Iran , Hamedan too. !!
@chandrashekharkulkarni2900
@chandrashekharkulkarni2900 Жыл бұрын
Where is the Zip file? As stated in this video at 5:47...
@braytonmaku9999
@braytonmaku9999 2 жыл бұрын
Hi there I wanted to find out if you also do Cyber Security tutorials just started my course and your Python and Java tutorials have helped tremendously. Hope to hear from you soon.
@alienmars1
@alienmars1 10 ай бұрын
Thank you for this tutorial, I was having problems until I saw your video thank you very much
@kevinguerrero5997
@kevinguerrero5997 Жыл бұрын
what a great content! so grateful to you
@ttonww
@ttonww Жыл бұрын
Hi Mosh, what IDE are you using and is it on Mac or Windows? Thanks
@andrewcox4324
@andrewcox4324 Жыл бұрын
just wondering where the zip file is located??
@edwinchiboko3737
@edwinchiboko3737 20 күн бұрын
yeah... same here!
@mrmxyzptlk8175
@mrmxyzptlk8175 Жыл бұрын
at 5:50 you say that below the video is a zip file, but there is no zip file.
@azamkhujaibragimov5597
@azamkhujaibragimov5597 Жыл бұрын
I looked for the zip file as well but couldn't find
@ganeshkamtam2234
@ganeshkamtam2234 2 жыл бұрын
Really really it's great to see u on live ❤️❤️
@gunasamayamanthula7129
@gunasamayamanthula7129 2 жыл бұрын
Happy to see you brother!! Love from India 😍
@kywei7485
@kywei7485 6 ай бұрын
Thank you Mosh, you always make good tutorial!
@QuantumFn
@QuantumFn 2 жыл бұрын
I learned so much from your 6 hours python course .Thank you so much Mosh🙏
@maliheface3333
@maliheface3333 Жыл бұрын
thank you so much for shaing your knowledge in an intersting way
@DaliyTv
@DaliyTv 2 жыл бұрын
Thanks for this tutorial!!!
@MrWeb-dev
@MrWeb-dev Жыл бұрын
You're an excellent tutor.
@paulclarke4099
@paulclarke4099 2 жыл бұрын
Flutter tutorial please, we have all been waiting so long for that 😀👍
@myominhann138
@myominhann138 10 ай бұрын
Great explained. Thank you so much.
@hazemsoussi5309
@hazemsoussi5309 Жыл бұрын
Great tutorial , that helped me well Thanks
@nuttchokwittaya8225
@nuttchokwittaya8225 Жыл бұрын
Are you sharing the code for this tutorial anywhere?
@EH-yl5ex
@EH-yl5ex 2 жыл бұрын
Thanks, very useful. Well done.
@tanveerahmad5996
@tanveerahmad5996 2 жыл бұрын
Your are the best "mosh".. no one can beat you
@programmingwithmosh
@programmingwithmosh 2 жыл бұрын
Thank you! Please support me by liking and sharing this video. :)
@odaakeenya
@odaakeenya 5 ай бұрын
Thank You Mosh. This tutorial was great!
@user-rg6qw2mi1d
@user-rg6qw2mi1d Жыл бұрын
good stuff. thank you. now the world needs your take on svelte!
@zacharypump5910
@zacharypump5910 11 ай бұрын
This was super helpful. Do you have guidance on how I would run Dr. compose for a permanent service on an Ubuntu server host? (Automatically start on host boot up.etc)
@bombswabs3041
@bombswabs3041 5 ай бұрын
Being a metalhead for decades. I just found my new favorite person and that guy's name is Mosh! \M/
@guliyevshahriyar
@guliyevshahriyar Жыл бұрын
Nice tutorial, thanks. It's full of valuable information.
@Avvaball__my_Teleqram_id
@Avvaball__my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance
@kanenaskanenou
@kanenaskanenou Жыл бұрын
What vs code extensions and terminal do you use?
@bachbachir3998
@bachbachir3998 Жыл бұрын
I hope you will continue and thank you very much you are my teacher
@saklinemostaq7718
@saklinemostaq7718 2 жыл бұрын
Which theme did you use in vs code for HTML and CSS tutorial?
@Microphunktv-jb3kj
@Microphunktv-jb3kj Жыл бұрын
never used docker images before.. made me curious i have the same structure on something im working on atm.. backend folder and frontend.. how would i go about with docker and containers... when i would use a monorepo? like turborepo or Nx maybe it would be a good material for your next video? : )
@Avvaball__my_Teleqram_id
@Avvaball__my_Teleqram_id Жыл бұрын
👆send a direct message for support and guidance
@andrewstribling4385
@andrewstribling4385 4 ай бұрын
How can one determine what the needs of the project are for a docker compose file? How do you know what the requirements are?
@behdad0979
@behdad0979 2 жыл бұрын
You're the best mosh ❤️💙
@leomysky
@leomysky 11 ай бұрын
Thank you for the explanation
@BorisBrodski
@BorisBrodski Жыл бұрын
I love your tutorials
@IslahMusleh
@IslahMusleh 2 жыл бұрын
Where can I find the zip file for backend and frontend projects mentioned in the video?
@dmytroshchotkin2939
@dmytroshchotkin2939 2 жыл бұрын
Same question here =(
@miked5444
@miked5444 2 жыл бұрын
I don't know either so replying here so hopefully I get a notification if someone tells you.
@oladipotimothy6007
@oladipotimothy6007 Жыл бұрын
Purchase the course
@nyakiomaina7077
@nyakiomaina7077 Жыл бұрын
what is the difference between docker-compose and docker compose.. I noticed that I'm getting an error when I use docker-compose but everything works well when I change it to docker compose .. without the dash
@Julian-tf8nj
@Julian-tf8nj 2 жыл бұрын
super helpful, thanks!
@NoahLoftier
@NoahLoftier 2 жыл бұрын
This guy is thug, everything is easy in his world. Thanks so much for all the effort Moch!
@patrikwihlke4170
@patrikwihlke4170 2 жыл бұрын
14:09 I think that could be to allow subversions like 3.8.2 etc which would not translate well as numbers.
@kg4lod
@kg4lod 2 жыл бұрын
Also, version is deprecated and ignored by docker. It's literally just a comment at this point. From Docker spec (emphasis in original): "A Compose implementation SHOULD NOT use this version to select an exact schema to validate the Compose file, but prefer the most recent schema at the time it has been designed."
@trivikramanand871
@trivikramanand871 2 жыл бұрын
woww!! Thank you so much Mosh for such great content, I'm a 1st yr CSE college student in India and request you to please make a OOPs in c++/ python !!, I saw ur 7min video on OOPs and I really understood it very well
@osunwoyeadedapo4634
@osunwoyeadedapo4634 2 жыл бұрын
Please can you code for crypto arbitrage for different exchanges?
@NOTNULLBG
@NOTNULLBG 2 жыл бұрын
How is the experience at a programming college? I also want to go the path of coding (I'm indian).
@anisprodhan1212
@anisprodhan1212 2 жыл бұрын
thank you mosh ...lovely !!
@mielushe2lheureux939
@mielushe2lheureux939 Жыл бұрын
Thank you so much for this precious tutorial. You talked about a zip file. Please, where can we get it so that we can follow up what you are teaching us? THANK you again!
@cran6166
@cran6166 Жыл бұрын
Do you get the answer yet?i still couldn’t find it as well
@dannyroy8571
@dannyroy8571 Жыл бұрын
Where's the ZIP file you were talking about attached belowed - i'm unable to find it
@Noor-Mohammed-S-248
@Noor-Mohammed-S-248 2 жыл бұрын
Need more videos on docker Thanks!
@Hearty-fb2in
@Hearty-fb2in 2 жыл бұрын
Hi mosh I was seeing that the code on python was not with the @client.event part and I’m very confused could you help me on what to do
@daleclements3884
@daleclements3884 2 ай бұрын
Hey Mosh, love your videos. When you demo the app you mention that the DB is pre-populated from a migration script automatically, but I never see how. What is causing that?
@tragchamp453
@tragchamp453 2 жыл бұрын
I was waiting for this ep. and enjoyed it!!!!! :DDDDD But can you please make a c++ beginner tutorial?
@kelvinkirwa4887
@kelvinkirwa4887 Жыл бұрын
mosh there is a very important part you left out , will you mind taking us through deploying the containers ? so that i can access the endpoints of the app globally ?
@eandresmo
@eandresmo 9 ай бұрын
Cant find the zip file he mentions at minute 5:50 Any way i can get it?
@rehmansaifmohd
@rehmansaifmohd 2 жыл бұрын
You're a Pro, Mosh! Thanks vm
@handsomevillian
@handsomevillian 4 ай бұрын
Hi Sir we didnt find your code for practice .please share the link
@RichardBronosky
@RichardBronosky 4 ай бұрын
This was one hell of a great video. You have a great teaching style. You are VERY clear in your explanations. And best of all, your screen captures are MOBILE-FRIENDLY. This video was missing the 1 thing I came looking for, but I am glad I watched the whole thing. Liked. Subscribed. Will look over your courses and purchase any that are remotely relevant to my needs. ☮❤🌈 PS: What I needed was how to do a "reverse port map/access". That is, I need initiate "from contain to host", instead of the "from host to container" that is explained EVERYWHERE. I have since learned this is done via `docker run --add-host=host.docker.internal:host-gateway` or in docker-compose.yaml `extra_hosts: ["host.docker.internal:host-gateway"]` Then [for example] your container can access the CUPS printer on your host machine via port: 631 on host: host.docker.internal
@marvellousfrederick9315
@marvellousfrederick9315 Жыл бұрын
I need the repo of the front end and back end projects so i can play sround with docker compose
@davidardo4466
@davidardo4466 2 жыл бұрын
hello mr mosh please answer me math is important to be professional web developer?
@CorryTerblanche
@CorryTerblanche Жыл бұрын
Great video, Thank you!
@richard-xh2bo
@richard-xh2bo Жыл бұрын
Hey Mosh, I don't know if I somehow missed the information, but where is the zip file you mentioned ?
@richard-xh2bo
@richard-xh2bo Жыл бұрын
Can't find it anywhere
@gidinated
@gidinated Жыл бұрын
what's the name of the util that autocompletes what you write in your terminal? thanks
@nanayaw7159
@nanayaw7159 2 жыл бұрын
Great job 👍.
@kazemgolabpars139
@kazemgolabpars139 6 ай бұрын
The reason version has to be in quotes for docker-compose is that yaml spec parses numbers such as 3.0 to 3 and it breaks versioning.
@tinashefame1591
@tinashefame1591 2 жыл бұрын
hi moshi, long time , you the best man
@richakumari6267
@richakumari6267 2 ай бұрын
5:51 where is the zip file ?
@ganeshkamtam2234
@ganeshkamtam2234 2 жыл бұрын
Big fan of you 🔥
ChatGPT Tutorial for Developers - 38 Ways to 10x Your Productivity
28:13
Programming with Mosh
Рет қаралды 3,5 МЛН
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,4 МЛН
Dapatkan APA PUN YANG ANDA INGINKAN dengan GADGET ini #shorts
00:11
Gigazoom Indonesian
Рет қаралды 13 МЛН
ISSEI funny story😂😂😂Strange World | Magic Lips💋
00:36
ISSEI / いっせい
Рет қаралды 110 МЛН
skibidi toilet 73 (part 2)
04:15
DaFuq!?Boom!
Рет қаралды 31 МЛН
Ultimate Docker Compose Tutorial
1:03:14
TechWorld with Nana
Рет қаралды 118 М.
Is Coding Still Worth Learning in 2024?
9:33
Programming with Mosh
Рет қаралды 156 М.
Docker Networking Tutorial, ALL Network Types explained!
19:46
Christian Lempa
Рет қаралды 182 М.
NEW GPT-4o: My Mind is Blown.
6:28
Joshua Chang
Рет қаралды 77 М.
How To Use Docker To Make Local Development A Breeze
21:53
ArjanCodes
Рет қаралды 287 М.
Docker Tutorial for Beginners
56:04
Programming with Mosh
Рет қаралды 2,4 МЛН
Top 8 Docker Best Practices for using Docker in Production
18:27
TechWorld with Nana
Рет қаралды 293 М.
5 Mistakes That Are Killing Your Coding Progress
3:42
Programming with Mosh
Рет қаралды 39 М.
you need to learn Docker RIGHT NOW!! // Docker Containers 101
23:19
NetworkChuck
Рет қаралды 2,6 МЛН
Learn Docker in 1 Hour | Full Docker Course for Beginners
1:27:53
JavaScript Mastery
Рет қаралды 253 М.
Dapatkan APA PUN YANG ANDA INGINKAN dengan GADGET ini #shorts
00:11
Gigazoom Indonesian
Рет қаралды 13 МЛН