I bought a 10 hour online course to try to learn what you showed in less than an hour, and you did it much more clearer and simple, why didnt I find you before? YOU ARE AMAZING!
@uzairs.23108 ай бұрын
True
@yasserlakhsadi51226 ай бұрын
me too with the difference that it's a week, it showed exactly to the thousandth my need
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@roksprogar2 жыл бұрын
This is on a much higher level than some of the paid laravel/docker courses I've seen.
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@klausveliu Жыл бұрын
I must say, you have done a really great job with this tutorial. Don't know why KZbin algorithm has not ranked your video better because I landed here by accident after searching for days for a tutorial like this. A very complex setup shown in under 1 hour 👏
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@jerespy Жыл бұрын
I will refer anyone who wants to learn Docker here. I have been trying for weeks now, but this tutorial did it in less than 2 hours.
@AndrewKwabula Жыл бұрын
In under an hour and for free, this delivers more than many paid courses that are several hours long. It really provided me with a solid foundation using Docker.
@tech-networking92872 жыл бұрын
Perfect timing, I have been learning docker for a month, with this I think I can break through lot problems, thank you so much!!
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@tech-networking92872 жыл бұрын
This channel is underrated, it has some most helpful videos, keep it up, bro.
@AhmedNabil-zs4md2 жыл бұрын
You are awesome, This is the most valuable docker resources related to PHP and Laravel that helped me, Thanks man
@uzairs.23108 ай бұрын
i am new to docker and now i can use it and deploy my project via docker. May God bless you brother!
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@irfan_susilo Жыл бұрын
ohhh my god , , this is what i want, super detail, super friendly explanation, not in hurry , well done. Enjoying the explanation and understanding this tutorial is just like enjoying 5 star restaurant menu !
@rwotbusiness36907 ай бұрын
This is a very recent in April 2024 best tutorial that works even on laravel 11 Thank you so much brother.
@_RdN Жыл бұрын
Thank you for the lessons. My career is starting to move upwards since I began to watch your videos.
@PakistanArmyYouth Жыл бұрын
43 Min video i listen and implement in 2 days and project is succfully running thanks
@wahbalaamri Жыл бұрын
thank you my friend I learn a lot from your tutorial.. I really but my hand in How to Dockerize Laravel Projects..
@setarebehzadi5223 Жыл бұрын
It is the most perfect coursr I have ever seen. Thank you.
@ahmedjaber85952 жыл бұрын
Thanks, this is the best yt channel for advanced laravel topics 🔥
@souviknag Жыл бұрын
Learnt a lot about Docker from this video. Thanks a lot
@OlieTalusan Жыл бұрын
Great tutorial! I'm using this right now as a reference. Hope you add timestamps so it's easier to navigate the sections. Thanks!
@introvert.irl99.96 ай бұрын
just wanna say god bless you sir 🙏🙏🙏
@markoleen90602 жыл бұрын
Such a great tutorial for docker beginners like me. This is awesome.
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@jawadkhan8747 Жыл бұрын
Super excited! great. This tutorial was so helpful.
@sadanandmasurkar6668 Жыл бұрын
Really great 👍 One qs when we change some code there is need to follow docker compose procedure or any other way direct reflect in docker ?
@msafdaralikhan949811 ай бұрын
extremely helpful and straight to point. thank u
@breakunknown Жыл бұрын
Thanks a lot, changing my skeleton docker now.
@raphaelramos4016Ай бұрын
Great video. By the way, how do you know exactly the extensions and packages required for the php container at 19:53?
@victorchinonsougwu13592 жыл бұрын
Very well made, thank you for this. Hopefully you can make a video for people to add the artisan services too.
@CodeWithBehram7497 Жыл бұрын
Docker looks like super easy after watching this video thanks so much you got a sub 👍
@oksanaozcan201 Жыл бұрын
thank you for this lesson. It's very helpful and clear explanation
@FernandoMartinsdk2 жыл бұрын
Salvou o meu dia !!! Muito obrigado !!! você é o cara !!! Se um dia você vier para o brasil eu te pago uma cerveja
@JerryJonesIndia Жыл бұрын
Great job man! Worth watching.
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@wannabe_all Жыл бұрын
Taking to production [ Deployment ] Tutorial would be highly appreciated [Nginx * Php * Laravel * Docker * Mysql and Ubuntu server instance ]
@Haragavi Жыл бұрын
Awesome content ❤️ Please try to add timestamp
@AliAwwad7 ай бұрын
Thank you so much Emad.
@josephnduati12147 ай бұрын
This man should be protected!
@GerardoAndrade1 Жыл бұрын
Everything seems very clear to me, however when I run docker compose up , with the project you have finished, it sends me the error: docker endpoint for "default" not found
@ochollat Жыл бұрын
You just saved me at work👍
@fabsync Жыл бұрын
Love your teaching style! It would be great to see a video on how to install laravel with docker and docker compose in ubuntu with digital ocean.. with nginx..
@alidahmani7319 Жыл бұрын
Thank you, great job.
@general2000vn Жыл бұрын
very useful tutorial, thank you very much.
@bheemkumarthami Жыл бұрын
superb tutorials, thank you.
@samjamzee9 ай бұрын
Thank You , It was more helpful
@two-zero Жыл бұрын
Thank you Emad
@SilentSolution2 жыл бұрын
Thanks for your information and cooperation
@willdickens39279 ай бұрын
extremely useful :) thank you :)
@Matrix85218 ай бұрын
It should be noted that this setup is for development only. On production you'd need an extra webserver container (nginx or apache) to serve your website as relying on "php artisan serve" in production would be a terrible idea.
@thedavistheory7674 Жыл бұрын
Useful tutorial
@ShakibBaig1 Жыл бұрын
Great effort, Only one suggestion if you can explain the docker commands and files in more detail while using them, it will be perfect
@AssaneKeita Жыл бұрын
hello nice tutorial i have some error\s when i try run doker-compose up -d the page app error display : RedisException PHP 8.1.17 9.10.1 Connection refused
@victorbuquera74442 жыл бұрын
If i need this in a interview i will open your github? ...
@gideonpeters___2 жыл бұрын
Very helpful!
@itsLarryAlright Жыл бұрын
is it compulsory you setup the project before dockerizing it or you can create a container first and then move setup the project using composer?
@LogicLab_LRK Жыл бұрын
Yes, you can create a Docker container first and then push your project into it. In fact, this is a common practice in Docker-based development workflows. When you create a container, you are essentially creating a self-contained environment that includes all the dependencies and configurations needed to run your application. Once the container is created, you can push your project into it using a variety of methods, such as copying files into the container or using a tool like Git to clone your project repository inside the container. By doing this, you can ensure that your project runs consistently across different environments and avoid issues with dependency conflicts or configuration mismatches.
@wannabe_all Жыл бұрын
U really nailed it bravo !!
@AKBROS Жыл бұрын
Thanks a lot you are awesome,great tutorial
@uzayyolcusu-uzaylbaksyalnz9959 Жыл бұрын
Good explanation
@RashadKhanrdk3 ай бұрын
For some reason my container does not connect to laragon MySQL. I mean start the server as you do, but it says connection refused?
@bortolinipedro5 ай бұрын
Thanks!
@saragasmichalis21778 ай бұрын
perfect!!!
@kanao83782 жыл бұрын
thank you senpai, very helpful
@MFrancoRiveraCarranza9 ай бұрын
It would be great having the nginx configuration as well
@amrhesham63835 ай бұрын
thanks a lot!
@thecyrilcril4 ай бұрын
Thanks for the tutorial, was very informative but I could not get it to work... I kept getting "php-1 | exec docker/entrypoint.sh: no such file or directory"
@mdhasan9477 Жыл бұрын
Respect!
@goldenmoses240 Жыл бұрын
is it advisable to run php artisan serve on in a prod environment?
@medoune89 Жыл бұрын
Hello Sir, when i try to do : "docker-composer up --build" it shows me "no configuration file provided: not found" (10:32)
@alvaroaliaga78922 жыл бұрын
very good. i have a question. could i to use redis just making composer require predis/predis inside laravel? without configure redis server in docker-compose.yml?
@emadzaamout2 жыл бұрын
Yes you can. Just make sure to expose the redis ports inside your php container to make sure you can access it externally
@iShah300 Жыл бұрын
How can we run multiple laravel projects in different ports at the same time?
@abdelrazeksayedmohmmed28912 жыл бұрын
excellent
@agungriadi99 ай бұрын
terimkasih sangat membantu
@rehama962 Жыл бұрын
Thank you man
@cess-l7h11 ай бұрын
What is the process to dockerize a Laravel Api and Angular Frontend and upload the image to DockerHub? Please help me!😢
@code4life332 Жыл бұрын
Thanks alot bro :)
@usamaahmad69672 жыл бұрын
Thanks alot. It helps alot :)
@edunwa3679 Жыл бұрын
RedisException PHP 8.1.15 9.10.1 Connection refused seeing this while opening the app on browser...how do i resolve this? great tutorial though
@edunwa3679 Жыл бұрын
if anyone encounter this same error, just change REDIS_PORT=6379 to REDIS_HOST=redis on .env file
@amitleuva87392 жыл бұрын
can you also make a video which explains, how to deploy this app over aws ecs?
@eustaciobautistaarellanos41762 жыл бұрын
The video is very good, it helped me a lot. But I'm using Laravel with Vue, when I try to "RUN npm run dev" in the Dockerfile below the "RUN npm install" line to compile but it doesn't run, the error shows me "The Mix manifest does not exist." How could I do it? help me
@neletasicАй бұрын
I cloned the app and start it, but it doesn't work. PHP, que and socket containers are not running. I use Docker on Windows 10. Would someone help me?
@karlkrasnowsky3895 Жыл бұрын
Great tutorial, but after all of this you are deferring to the built in web server? Why not show the install and use of either apache or nginx?
@emadzaamout Жыл бұрын
Hello friend. This is a beginner course to introduce developers to docker. If your looking for top performance prod build please check out this tutorial :) We use nginx opcache php fpm to serve requests as fast as 5ms. kzbin.info/www/bejne/qaCYYZ5mqZykjdE
@WebDevAnjali5 ай бұрын
i'm going to ask a really stupid question . do we need to have web server, php and composer already installed before all this I've recently switched from windows where i have everything set up for projects to linux ubuntu i've nothing installed configuring all those old projects are headach i've access to many projects everytime i switched to new system cus i couldn't configure them all due to different version requirements All the people under this video looks experienced i'm the only fool here i've copied the old laravel project and installed docker ( have not any any docker compose file till now) i'm new to docker i dont know how to containerize different project tho i'm getting a bit of understanding but still had that stupid question so Do i need to have apach, php, composer pre installed before creating container/image in docker-compose?
@elpepelucho4 ай бұрын
answer is YES. Laravel requires composer and PHP. And as far as the web server, you can set one up but in this example it's using PHP's (or artisan's) SERVE command. Using the SERVE command is not as ideal as having a webserver running. You can easily add a webserver to the docker-compose file, there are many examples online on how to do this.
@mohamad.elbohsaly2 жыл бұрын
Why do we need Node container? Ultimately, the laravel project will be linked to ECR and ECS on AWS
@emadzaamout2 жыл бұрын
Short answer: it depends. you dont need it on a seperate container. We still need it to build and compile our frontend assets. You can install node and npm in the same php container. If your running some CI/CD pipelines then you can also compile them there instead and not need a seperate container for prod. For local, seperate or same container not much of a difference. I would argue that having node inside your php container would be better since it's one less container to run (less ram, cpu, memory etc ...) On the other hand, if your project has a decoupled architecture (seperate UI and API) and let's say for example your UI uses Vue or React Next.JS (both running on node) and Laravel for the backend, then having seperate containers (servers) will make it easier to scale. Also, if your node server gets hacked, it wouldn't expose your backend (database and api logic). There's lots of good reasons. But the point is it really depends on the project. The reason why I made a seperate container for each part is just to help teach the material. More ports to expose, cleaner logic etc ...
@nizz4m Жыл бұрын
why not using Sail ?
@hemendraajmera6880 Жыл бұрын
using docker on windows getting this error 2023-02-15T02:11:55.460338Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.32' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL. Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": stat docker/entrypoint.sh: no such file or directory: unknown
@alshojamikbal8510 Жыл бұрын
is it ok to use php artisan server in production ?
@elpepelucho4 ай бұрын
NO
@AntonioColaizzi Жыл бұрын
Hi, please move away from this block - I followed the whole video and it's really great, but after 42:29 min (rechecked the code several times) laravel-docker-websocket-1 not running but exited(1) and al docker logs: env file exists. Running the websocket server ... ERROR There are no commands defined in the "websockets" namespace. I hope you can give me a hand
@marinarioagalliu95172 жыл бұрын
Did anyone had this error on ubuntu: ERROR: for base_event_php_1 Cannot start service php: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": stat docker/entrypoint.sh: no such file or directory: unknown
@md.juyelrana222 жыл бұрын
Run the command in your terminal "chmod +x docker/entrypoint.sh" the hope will work
@marinarioagalliu95172 жыл бұрын
@@md.juyelrana22 same error
@md.juyelrana222 жыл бұрын
Add the following two line and rebuild it should work RUN ["chmod","+x","Docker/entrypoint.sh"] ENTRYPOINT [ "Docker/entrypoint.sh" ]
@marinarioagalliu95172 жыл бұрын
@@md.juyelrana22 I'm going with Laravel Sail it seems much easier to me... Thanks
@edunwa3679 Жыл бұрын
@@md.juyelrana22 you saved my sorry ass... thanks great video though
@justinchukwu362 Жыл бұрын
Awesome tutorial but for some reason, Laravel runs really slow on docker. is there a way I can fix that?
@emadzaamout Жыл бұрын
You need to use WSL2 it will be much faster than running directly on windows. I have a seperate video on that
@dikshashukla68993 ай бұрын
@@emadzaamout can you please share that video
@realEsDev2 жыл бұрын
I see this issue when i run docker-compose up ⠿ Container laravel_docker-php-1 Starting 2.4s Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": permission denied: unknown
@kalulu442 жыл бұрын
Did you get a solution for this ?
@md.juyelrana222 жыл бұрын
Run the command in your terminal "chmod +x docker/entrypoint.sh" the hope will work
@mursalinkabir Жыл бұрын
@@md.juyelrana22 Thank you . this resolved my issue
@MayurbhanjBoy8 ай бұрын
I am getting the error "Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker/entrypoint.sh": stat docker/entrypoint.sh: no such file or directory: unknown"
@MohamedNajathi7 ай бұрын
Did you fixed this issue ?
@user-ix1uu2 ай бұрын
@@MohamedNajathi i dont know how the Dockerfile work in the video because the real directory name "Docker/entrypoint.sh" and the dircetory name in the Dockerfile "docker/entrypoint.sh" is missmatched and changing the directory name from Docker to docker solves my issue
@juantevez92672 жыл бұрын
RedisException PHP 8.1.5 9.10.1 Connection refused help me
@auriaksFLC2 жыл бұрын
Ser REDIS_PASSWORD=null to REDIS_PASSWORD=YourPassword
@cuscodev2 жыл бұрын
@@auriaksFLC hello sir, how do i get a password?
@auriaksFLC2 жыл бұрын
@@cuscodev You make one up :) make sure its secure once you move from development..
@limankastrati3272 жыл бұрын
Can Laragon prevent Docker of working like it should?
@emadzaamout2 жыл бұрын
Depends on your errors. But if you have laragon running, maybe it's using the same ports as we are exposing. If that's the case, close laragon or change the ports in docker. Also I highly recommand you use wsl2 if your running docker on windows. I have a course on that kzbin.info/www/bejne/oZK0gomleqeoo7s
@limankastrati3272 жыл бұрын
@@emadzaamout thanks it worked
@bernardchisumo40549 ай бұрын
6/11] RUN groupadd --force -g sail
@AnupPoudel-w2f Жыл бұрын
Queue container exits with status 0 always for me
@mhshakil160610 ай бұрын
💝💝
@cuscodev2 жыл бұрын
RedisException Connection refused how to solved?
@fatman91832 жыл бұрын
Complete the tutorial. It resolved itself after the WebSocket part was configured
@leel3836 Жыл бұрын
I got it fixed by copying the finished setup files. I had alot of typos and wrong space placements.
@bernardchisumo40542 жыл бұрын
I have posted an error message on one of your channel today ,kindly assist how to resolve the problem once your free (DevOps Tutorial - Laravel Deployment Automation CI\CD using AWS RDS EC2 S3 CodeDeploy BitBucket)
@kellyxglobalwebsolutions44525 ай бұрын
Hey man, nice video. The services are running fine for me, laravel frontend pages are loading fine, but it seems there's an issue with connecting to the database as each time I tried to access a route that connects to a database in MYSQL, I'm always hitting this error message: SQLSTATE[HY000] [2002] No such file or directory SELECT * FROM `users` WHERE `email` = Admin OR `name` = Admin OR `phone` = Admin limit 1
@mohamad.elbohsaly2 жыл бұрын
I have a laravel project built by my colleagues, which I want to dockerize. Aren't Dockerfile & buildspec.dev.yml enough?
@bernardchisumo40542 жыл бұрын
You are awesome AHT
@CodeWithAbirOfficial Жыл бұрын
@makgaboemmanuelmathekga2805 Жыл бұрын
Good day. I have been having this error for some days now. i am not sure how to resolve it: "failed to solve: process "/bin/sh -c docker-php-ext-install pdo pdo_mysql bcmatch" did not complete successfully: exit code"
@mohammedkhalaf2965 Жыл бұрын
RUN docker-php-ext-install pdo pdo_mysql bcmath it's bcmath bcmatch
@PlatformExpert Жыл бұрын
AM USING MONGODB INSTAD OF MYSQL BUT FACING EXTENTION ERROR: [php 4/7] RUN docker-php-ext-install mongodb bcmath gd dev zip curl: #8 2.691 error: /usr/src/php/ext/mongodb does not exist?