Many times I've tried and failed to understand what docker is. Now I have a basic but solid idea of what it is thanks to a PHP guide. Wasn't expecting that but thank you very much ^^
@ProgramWithGio Жыл бұрын
That is super awesome, really happy to hear that
@cw18473 жыл бұрын
Gio, you are an awesome teacher. This whole course is GOLD. Thank you.
@ProgramWithGio3 жыл бұрын
Thank you so much 🙏
@davidbrandt48212 жыл бұрын
@Samir Ibrahim Couldn't say it better!🤙
@vladimir_fomin90 Жыл бұрын
@@ProgramWithGio hi! I use devilbox how to alternative xammp
@isaacsouza173 жыл бұрын
Once you use docker (and get over the first headaches) you will never want go back to thing like XAMPP, docker, and specially docker-compose, are great for local development, even more for people who use Linux, in which docker runs at lightspeed. Thanks for the tutorial, great video, keep it up.
@ProgramWithGio3 жыл бұрын
Thank you. I agree 💯. I haven't used anything else since I started using Docker.
@abrahamnalisi4648 Жыл бұрын
I love how you explained Docker and its configuration. I've been trying to understand it for months but your content made me unify everything I read before and even get a project up and running within docker. I'm a seasoned PHP dev and I'm enjoying re-learning from your course coz its making me understand 'newer' concepts and expanding my thinking. Thanks Gio!
@ProgramWithGio Жыл бұрын
Super happy to hear this, thank you & good job
@rodolphe8859 Жыл бұрын
That 's a proper course.Every learning program should be like that.Learning the right syntaxe, the right architecture and the right way ;)
@ProgramWithGio Жыл бұрын
Thank you 💙
@cryptonyx3925 Жыл бұрын
Even after 2 years of publishing the course, I managed to ask my questions and get my problems solved via twitter and discord. I mean it is not sth u get with ANY FREE COURSE out there. I just want to say Im rly grateful...
@ProgramWithGio Жыл бұрын
You're welcome 💙
@snakemanluffy76453 жыл бұрын
wow, It's been a while. I stopped watching you cause there were no more PHP videos. Tnx I will finish again today. Will wait for another 8-10 videos to watch. Thank you for this amazing course. I want to let you know that I got the job that I was telling you about. It's a PHP/Laravel Job. I have learnt so much from you about PHP. Thank you. I will be grateful forever :)
@ProgramWithGio3 жыл бұрын
That's amazing. Im happy to hear that my videos were & are helpful. Thank you 🙏
@omegajunior89633 жыл бұрын
@@ProgramWithGio This is an error i get got when i did docker-compose up, kindly assist services.app.build must be a string
@ProgramWithGio3 жыл бұрын
@@omegajunior8963 DM me on Twitter and I'll help you troubleshoot it. If you can share your Dockerfile & docker-compose that will be better
@omegajunior89633 жыл бұрын
@@ProgramWithGio I have been able to solved it. i didnt type the codes well. Thank you very much. I am enjoy this course by the time i get to video 70 i will be able write a complete program. you are blessing me
@kaustavroy6542 Жыл бұрын
I know everyone already told you how good of a teacher you are. BUT i gonna say it again , YOU ARE A GREAT TEACHER , glad i found you. Thanks for theentire playlist.
@ProgramWithGio Жыл бұрын
Thank you very much
@mdzahid13899 ай бұрын
Many times I've tried and failed to understand what docker is. Now I have a basic but solid idea of what it is thanks to a PHP guide.
@ProgramWithGio9 ай бұрын
That's awesome, happy to hear
@ChandanSomani-r5o2 ай бұрын
Loved the way you showed the way to configure docker & php ... just clear the missing information
@ProgramWithGio2 ай бұрын
👍👍
@ilyamur885 Жыл бұрын
PHP needs courses like this! PHP is the king of bad learning videos and low quality infos, and I don't know actually why. So many awful code practices everywhere, so many anti-patterns (with globals, without composer, without namespaces, with mixing buisness logic with presentation layer, with only one file functions.php "for everything", etc.). This is not my first language and I see that these code practices are really bad and smelling, but many-many newbies may find it helpful... Gio, really thank you for such quality course. Only suggestions - please, give us more practical exercises. Keep up your awesome work!
@ProgramWithGio Жыл бұрын
Thank you & thank you for the suggestion 🙌🙌
@ollienicholson5 ай бұрын
@ 12:31 "Now the cool thing about whatever we did" 🤣🤣 so general, I love it
@ProgramWithGio5 ай бұрын
🤣🤣
@shaimaal-haimi2739 Жыл бұрын
شكرا لك جيو لقد كان الفصل الاول صعبا لكني سأواصل وسأقوم بأكمال جميع الفصول الى نهايتها انت الافضل
@ProgramWithGio Жыл бұрын
Thank you & good luck
@ryanford5162 жыл бұрын
Thanks for the video, Gio! I had to take a lengthy Docker course before proceeding but I now see the utility of containerization, it's really cool. The only thing I still can't wrap my head around is data transfer between the server and PHP-FPM. So you've got 2 separate containers running, one with the PHP-FPM installed and the other with the server that doesn't automatically pass requests to .php files over to any interpreter. These containers essentially share one interface though, which is the src directory on the Docker host. Still I don't get the mechanics of this all. Suppose you initiate an HTTP request on your Docker host (via browser) and the destination is the loopback address with the 8000 port attached to it. The OS on the Docker host parses the request and since 8000 is the port one of our containers listens on, that container gets that request. This container is running Nginx and it sees that it's a request to a .php file. Okay, what next? In the config file it says "fastcgi_pass app:9000" so I understand that this is the part responsible for forwarding the request to the PHP interpreter. However, what does "app" stand for? Through deduction I conclude that's the reference to the container (service) running PHP-FPM but the name of that service is actually "programwith-gio" as indicated in the .yml file. So I'm confused. TL;DR: how does PHP-FPM communicate with Nginx when they're running in separate containers?
@ProgramWithGio2 жыл бұрын
Glad you took the additional course for the Docker, it does come in handy. So the 'app' is not the container name but the service name, if you check the docker-compose programwithgio-app is the container name but the service name right under services is app.
@ryanford5162 жыл бұрын
@ProgramWithGio thank you, I'm almost finished with your truly awesome series, and I've also recommended it to my dev friends. Now I decided to backtrack some crucial things in your code that I still am not quite comfortable with in terms of understanding, however. Right now it's some of Nginx config blocks. I'd be grateful if you could point out the flaws in my logic here. So here goes. If you use an arbitrary endpoint to make a request to the app, e.g. localhost:8000/foo it's going to be handled by the second location block first. The request URI is /foo, and I assume that's what should be in the $query_string variable. However, the variable is empty as I checked it by sending a header with its contents back as a response via the add_header directive inside the second location block. So how does the request URI persist through to the point of being processed by index.php?
@migueldemaria38303 жыл бұрын
Yay, I got Docker set up thanks to Mr. Gio!
@ProgramWithGio3 жыл бұрын
Glad to hear that. You're welcome Miguel
@michaeljean35073 жыл бұрын
Just found you, and man i can say your way of teaching makes it very easy to follow whats going on. Thank you, I'll be following your tutorial and subscribed.
@ProgramWithGio3 жыл бұрын
Thank you 🙏
@Vitalii-m6r Жыл бұрын
I like working with Docker as I use Windows. Thanks a lot!
@ProgramWithGio Жыл бұрын
Great to hear
@whisperscribe Жыл бұрын
Awesome video as always, I wish all tutorials was this good.
@ProgramWithGio Жыл бұрын
Thank you 🙌
@WhiteSiroi2 жыл бұрын
OMG, u r the GOAT, so helpful, loving Docker now
@ProgramWithGio2 жыл бұрын
Happy to hear that, thank you 💙
@s4f4y4t93 жыл бұрын
Liked before watching
@ProgramWithGio3 жыл бұрын
Thank you 😏
@julianvogel12772 жыл бұрын
really not a friend of php. Mostly writing in NodeJs. But this series is just amazing. Love it
@ProgramWithGio2 жыл бұрын
Thank you
@estudiowebdiezmilseres85432 жыл бұрын
¡Gracias!
@ProgramWithGio2 жыл бұрын
You're welcome 👍
@christiansosa5484 Жыл бұрын
So useful videos with a friendly and one step up perspective! Thanks so much
@ProgramWithGio Жыл бұрын
Thank you, glad you like it 💙
@muhammedatallah68632 жыл бұрын
Best course I've ever seen and learned from. Thank you for that GOLD
@ProgramWithGio2 жыл бұрын
You're welcome and thank you 🙌
@edxkr2ym6atl663 ай бұрын
That pucture on 0:22 made my day))
@ProgramWithGio3 ай бұрын
😄😄
@rafaelmsalescom7 ай бұрын
Really appreciate the course. This video in particular helped me a lot. Thank you very much Gio!
@abduabdu74047 ай бұрын
Sir, can you teach me how to download and setup docker compose and nginx the right way. i am a begginer and have been struggling with this for 3 days, i looked at many tutorials but they did not help.
@rafaelmsalescom7 ай бұрын
What problems are you having?
@abduabdu74047 ай бұрын
@@rafaelmsalescom i am trying to setup and download the dockerfile, docker-compose.yml and nginx but i cannot figure it out
@abduabdu74047 ай бұрын
your help would be so greatly appreciated, as i have been trying to solve this for days
@rafaelmsalescom7 ай бұрын
@@abduabdu7404 Following the video steps didn't work?
@goldfix81123 ай бұрын
Yess. Ahh thats headache.. Starts from installing docker on ubuntu and continues with attempts to force it work, changing configurations that was in the video, sending energy in space and stuff like this. But now it works somehow! Almost understand how exactly. Thanks for work.
@ProgramWithGio3 ай бұрын
Congrats on making it work
@DMZee1012 жыл бұрын
Great tutorial! Gio be making me feel like a pro👍
@ProgramWithGio2 жыл бұрын
You are a pro! Thank you 🙌
@mrprograming2 жыл бұрын
Thanks for your good teaching. This video was useful for me.
@ProgramWithGio2 жыл бұрын
Happy to hear that, thank you 🙌
@josuebarros-desenvolvedorw24903 жыл бұрын
Thanks a lot for the wonderful video! I can see that I need to become good with Docker fast!
@ProgramWithGio3 жыл бұрын
You're welcome. It's not that bad once you play around with it.
@jadidlar47652 жыл бұрын
best tutorial ever
@ProgramWithGio2 жыл бұрын
Thank you 🙌
@hasnatsafder7463 Жыл бұрын
Great tutorial, thank you so much. The working_dir doesn't need to be redefined in docker-compose file for app container.
@ProgramWithGio Жыл бұрын
Thank you. That is correct, I just prefer to have it in both cases in case you only work with docker-compose.yml and abstract away the Dockerfile somewhere else. Just a habit I guess
@federicobau86513 жыл бұрын
best php course
@ProgramWithGio3 жыл бұрын
Thank you 🙌
@Zubbee2 жыл бұрын
Great. I need to watch it again so I can set docker up. I downloaded docker composer before but I don't know what went wrong. For one I didn't even know how to integrate with the any server and then I was also installing wsl2 and the whole thing made my computer so slow that I had to remove them all and technically re-install my OS. But from what you showed, it seems easy if I follow what you demonstrated (I hope).
@ProgramWithGio2 жыл бұрын
Fingers crossed, hopefully it works out this time 🤞
@MisterForgettable2 жыл бұрын
Thanks for the video man ✨
@ProgramWithGio2 жыл бұрын
You're welcome
@ינוןאלבז-כ1ז2 жыл бұрын
great lesson!
@ProgramWithGio2 жыл бұрын
Thank you 💙
@nadergad87253 жыл бұрын
Thank you, great lessons. I have a suggestion: In new videos. If you please, make the File/ Settings/ Appearance & Behavior/ Appearance: use custom font size: 16, so the menus look a bit clearer. Also, Editor/ Color Scheme/ Cobalt, has a clearer contrast than Darcula when presenting code to others. Thank you again, and please keep on.
@ProgramWithGio3 жыл бұрын
Thank you and yes I agree. I'm going to increase the font, in later videos I started zooming in on important parts but increasing font should help. Will test the cobalt theme 👍
@vinsouz3 жыл бұрын
Thank you for your job!
@EuegenTv2 жыл бұрын
really good course!!
@ProgramWithGio2 жыл бұрын
Thank you 💙
@jeevachaithanyansivanandan3 жыл бұрын
Thanks for the video
@ProgramWithGio3 жыл бұрын
You're welcome
@KennedyMutua-yx3vs7 ай бұрын
The latest and recommended version of the Compose file format is defined by the updated Compose Specification Those who might use this video, use “Docker compose up” And name your file “compose.yml” over "docker-compose.yml" even though backwards compatibility is kept And don’t pass a version header this is the updated way at time of writing
@abduabdu74047 ай бұрын
Sir, can you teach me how to download and setup docker compose and nginx the right way. i am a begginer and have been struggling with this for 3 days, i looked at many tutorials but they did not help.
@themaridv2000 Жыл бұрын
Gio, I need your help. when i type docker-compose up in the terminal I get, "no configuration file provided: not found" I don't know what to do, I have tried everything I searched on Google except changing to linux. What should I do?
@ProgramWithGio Жыл бұрын
cd into the directory that has the docker-compose.yml file and run the command from there
@themaridv2000 Жыл бұрын
@@ProgramWithGio Thank you so much man ❤you're undoubtely the best php teacher I've seen
@BrettRoscoe-b6t9 ай бұрын
Like everyone else I'm also enjoying this series. I just had a couple of questions about the docker setup: (1) Why is the bind mount ("- ../src:/var/www") required for both the app and nginx services? Shouldn't it only be necessary for the app service? (2) Why is there a ".d" at the end of the nginx config path in the docker-compose.yml file? I've tried everything and it works great; I just don't understand how it works.
@ProgramWithGio8 ай бұрын
Thank you. 1. nginx might need access to the source as well to serve static assets etc 2. Its more like a convention
@Flo-mz8ct2 ай бұрын
I hope I can finish you php tutorial at some point and then your hopefully finished laravel tutorial. Atm I do a lot of python, data science / AI stuff, I just can't find the time :'(
@ProgramWithGioАй бұрын
Take your time 💙
@franklycreations6 күн бұрын
Thank you so much Mr. Gio! I have a question, after the release of Laravel herd, is docker still necessary? Since Herd allows for multiple sites at a time
@ernestogimeno6462 жыл бұрын
Awesome course so far. Sorry if you already mentioned but I can't find it. Do you have the source code posted somewhere? I find it specially useful to copypaste the configuration files and avoid typos.
@ProgramWithGio2 жыл бұрын
Thank you. Check description of the video, link to the source should be there
@alnahian2003 Жыл бұрын
0:27... "And that's how docker was born" 😂
@ProgramWithGio Жыл бұрын
😁😁
@gedasgedas17203 жыл бұрын
My advice would be to leave your folder structure in git for others to copy cause writing by hand can lead to typos :D I don't understand all of the things in your docker files but i think that is normal, cause I only used XAMPP and I didn't need to write anything there. Last question would be why are we writing /var/www directories in a lot of places?
@ProgramWithGio3 жыл бұрын
My reply was removed by KZbin. Not sure if you had the chance to see it. /var/www contains your source code in docker container but if you don't mount the volume it will just be empty. So we map the local source directory to the /var/www. Not understanding everything is perfectly normal, you'll learn along the way. If you like Docker I would suggest watching some docker tutorial and then a lot of things will make sense. You can DM me on twitter in case my reply gets deleted again if you have follow up questions. Idk what's up with KZbin deleting my replies ☹️
@nikolaigladchenko31823 жыл бұрын
Great video, thanks! I was wondering why we connect the src folder to both containers?
@ProgramWithGio3 жыл бұрын
One is for nginx & other is for php & php-fpm
@lairotuT-Tutorial3 ай бұрын
Hi Gio, you are a great teacher! In this video however I want to give my constructive mentions. While for most this kind of product information seems to be normal and just informative, my brain plays games with me in such "close-to-advertisement" features. I recognize that you prefer these products and you not only mention the benefits and features in you really fantastic way but give me and many others a clear idea of what we can expect from these. Thats great and please don't change this attitude! But would you mind to include some sort of advanced environment recommendation in general? However that might be because I am not a professional programmer but for me environment means feeling comfortable with a (one) solution. That has not to be all-in-one but a one(solution/combination)-for-all(long) time. I don't want to switch there and there and lose time to feel comfortable with the one and the other setting if you know what I mean. Of course and you tell this often in this video it depends on what you are working on. In my Idea a perfect environment would be to have the possibility to: - develop in the same way as I test (same IDE, same functionalities) - test with exactly same conditions as they run in production - ideally have at least one production setting on my own responsibility with the possibility to adjust this to fit to comparable production settings and to enable Closed Beta Testing. As I like to have the final app to have two different versions "test" and "production". I would like to have this "test" at least to have the same opportunities as full production and full development. Wouldn't it make sense then to have the development environment be the same as the production environment? And if so, why should I always use Environment for my development where everyone's clear this is for development, not for production? What would you recommend to me? Especially if I prefer to use free/open source products?
@ProgramWithGio3 ай бұрын
Thank you. Docker is the best way to achieve what you described. I just covered the basics for it since this course is not about docker but if you want to learn more you could watch some advanced Docker courses.
@lairotuT-Tutorial3 ай бұрын
@@ProgramWithGio Thanks!
@clivecorner Жыл бұрын
HI there Gio. I have attempted to get nginx up and running with docker. But it's not worked for me somehow. It could just be a typo. Is there any chance of zipping up the docker directory and posting it to git hub. Many many many thanks for your great teaching.
@ProgramWithGio Жыл бұрын
You can just share your code repository that includes the Dockerfile & docker-compose as well as nginx configuration. Any specific errors you are facing? Try checking logs using docker logs command for nginx container
@clivecorner Жыл бұрын
Will do@@ProgramWithGio
@ilya_123__ Жыл бұрын
thank you!
@ProgramWithGio Жыл бұрын
You're welcome
@sarc143 Жыл бұрын
When i run docker-compose up it gives me an error that says : no configuration file provided: not found
@ProgramWithGio11 ай бұрын
cd into the directory that has the docker-compose file & run it there
@FranckMercado3 жыл бұрын
Laracon is great but I normally use Devilbox which comes with lots of images ready to use and a nice dashboard to manage your containers projects
@ProgramWithGio3 жыл бұрын
Nice. I haven't used Devilbox, but it sounds cool. Looks like devilbox uses docker.
@FranckMercado3 жыл бұрын
@@ProgramWithGio give it a try.
@yassinezidane3888 Жыл бұрын
wow ty aloot Gio u are t best ,i hope u make a video nginx enable https with dockerfile and php
@ProgramWithGio Жыл бұрын
Thank you
@Zubbee2 жыл бұрын
I'm done. My docker is up and running with all the other hassles inbtwn. Local Host is running now. Thanks a lot Gio. But if I close my text editor after the container is up will it still run? And if it doesn't still run how do I get it up again?
@ProgramWithGio2 жыл бұрын
That's great, good job. When you close the editor it doesn't stop containers. You need to run docker-compose down, if you want to start containers again just run docker-compose up -d
@syedmuqeet2 жыл бұрын
Thanks a lot sir. I have a question, where can we find the php.ini file or the services that we installed via docker-compose.yml file like server directory etc?
@ProgramWithGio2 жыл бұрын
It's usually under: /usr/local/etc/php/conf.d directory within the container. You can create a custom php.ini within your docker folder where your docker-compose.yml is for example and then modify docker-compose.yml and add the following line: - ./local.ini:/usr/local/etc/php/conf.d/local.ini under the volumes section right under where you map the source directory to the /var/www Rebuild the containers and it should use your custom ini. Note that your custom ini does not have to be a full PHP.ini it can just contain the changes you want to make.
@c0mpumast3r3 жыл бұрын
great vid! what settings are needed for deploying php in production using docker/docker-compose?
@ProgramWithGio3 жыл бұрын
Thank you. That is a topic that would need it's own video. I would not recommend using development settings in production.
@cryptonyx3925 Жыл бұрын
Hello Thank you for the great course. I've been learning for a month or so, but I could not get the docker working. Every parameter is working fine but when I reach localhost:8000 it doesnt work. Can you help me plz? ofc I have modified some addresses in your files including ../src/
@ProgramWithGio Жыл бұрын
Hello. For me to be able to help I need to see the code and some screenshots. Reach out to me on Twitter and send me your Dockerfile, docker-compose and screenshot of your code structure
@mdsirazul9231 Жыл бұрын
Hi Gio How are you? Hope you are well. Just a question, I'm new in docker. I install docker desktop, pull php and nginx image in my docker desktop, download your source code Open it VS code and run docker-compose up. it says no configuration file provided: not found, please help me?
@ProgramWithGio Жыл бұрын
Hello. Where are you running docker compose up from? Cd into docker directory cause that's where the docker compose file is
@mdsirazul9231 Жыл бұрын
@@ProgramWithGio Thank you so much Sir, you just save my day.
@OmarAsem267 ай бұрын
@@mdsirazul9231 how did it work with you? i did all of that and got into the docker directory and ran the command docker-compose up and i'm getting this error: failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory any help from you guys would be appreciated
@veyspixelboy2 жыл бұрын
Hello first of all, thank you for all this courses. My question is about the docker, with xamp you show how to configure but with docker I try since 2 days but I am so lost.
@ProgramWithGio2 жыл бұрын
Hello. I also show how to configure with Docker. Any specific errors/issues you are having?
@veyspixelboy2 жыл бұрын
@@ProgramWithGio after 5:42 minutes I cannot follow because I dont know how did you put the docker and src on the code editor. What condiguration you do on the doxker logiciel?
@ProgramWithGio2 жыл бұрын
@@veyspixelboy there are two ways you can do it. One is have your source code on your computer C drive or whatever drive, doesn't matter, and open it in editor that way. Another way is to put your source code to WSL distribution and you should be able to open that from editor as well. Having source files in WSL is better because it is faster due to less disk IO. You can try the other way first. Also I would recommend watching docker for beginners tutorial if you want to use Docker. If it's too much then I would just stick with XAMPP or Laragon, it doesn't matter what you use locally, use whatever makes you productive. Docker is not a requirement, I am just showing it as an alternative because we already covered XAMPP.
@veyspixelboy2 жыл бұрын
@@ProgramWithGio okei thank you so much, I wanted just follow like 100%, I am so happy of your work Thank you again
@ProgramWithGio2 жыл бұрын
@@veyspixelboy no problem, good luck & thank you for following along 🙏💙
@DavidKwadwoArthur Жыл бұрын
How did you get the files in the docker and the src directories? What command would you run?
@ProgramWithGio Жыл бұрын
Not sure what you mean, I have all my source files on WSL & then open the directory from the code editor.
@DavidKwadwoArthur Жыл бұрын
@@ProgramWithGio I got it figured out. The only problem is when I run localhost:8000, I get 502. Bad Gateway. How do I fix this, please?
@ProgramWithGio Жыл бұрын
most likely a configuration issue. I would need to see your code & configuration to be able to assist. You can DM me on Twitter (X) your github repo link@@DavidKwadwoArthur
@DavidKwadwoArthur Жыл бұрын
Sure. On it@@ProgramWithGio
@bukolatestimony Жыл бұрын
Hello and thanks for this tutorial. I am just learning Nginx. Do you have a video where laravel is used with docker and apache? Can you pls point me to it?
@ProgramWithGio Жыл бұрын
Hey, not really, I have a video about Laravel Sail but that does not include apache.
@cpanagoulias2 жыл бұрын
Great video Gio! Could you do a short one with xdebug capability inside the container some time please?
@ProgramWithGio2 жыл бұрын
Thank you. I have xdebug video planned, hopefully I'll get to it soon
@Klinoklaz10 ай бұрын
I feel like installing extensions in official php images is a lot of pain. Had to install php-redis, imagick, mysql pdo and their dependencies from like 5 different places. What's the advantage of official images, comparing to apt-ing out all the stuff in a bare linux image?
@ProgramWithGio9 ай бұрын
Main advantages are security, consistency & most of the stuff are pre-configured. Going manual means you may need to do the configuration.
@Klinoklaz9 ай бұрын
@@ProgramWithGio Thank you for the answer. My main goal is to build a local dev environment quickly, and won't ship containers to production or testing yet, so that's not too bad. I think the configuration thing depends, the official image doesn't maintain extensions in one place or with one tool, and has permission issues sometime (too much security), both which I hardly encounter with an apt install
@chrisodillman3355 Жыл бұрын
Wow! 😍
@ProgramWithGio Жыл бұрын
🙌
@ycea3572 ай бұрын
I would like to use docker. But on windows it works too slow. I've got problems with installation already. It downloads very slow. So thank you for advicing laragon
@ProgramWithGio2 ай бұрын
Yup, use whatever works best for your environment
@asmotovlogs228 Жыл бұрын
Hi, Jio. I'm using Xampp. Is there any need for using Docker to complete this series?
@ProgramWithGio Жыл бұрын
You can keep using XAMPP if that's what you are comfortable with
@hohojimmy44433 жыл бұрын
In traditional way if your nginx config file have error you must uninstall it sometime will raise error.But in docker you can delete it easily.
@ProgramWithGio2 жыл бұрын
Thanks for the tip
@no_prplem_kpop_anime Жыл бұрын
Hello, Teacher Geo, I hope you can help me. “I have Windows 7 and I cannot install Windows 10-11 because my device is weak. I downloaded and installed dockertoolbox and downloaded the container images nginx, alpine, php, redis, but when I do the docker-compose up command in vcod, an error appears even though I wrote The file docker-compose.yml & nginx.conf & dockerfile correctly, so I decided to move to larvel homestead. What do you think of it? Will I be able to create an online store with it and transfer it to Hostinger hosting without problems? If you have another suggestion, let me know.”
@ProgramWithGio Жыл бұрын
For local development it's fine, you can try Laragon as well
@no_prplem_kpop_anime Жыл бұрын
That is, when I upload the site to hosting, there will be no errors and it will work well. I plan to build an online store with Larvel and React. It will not crash and will work well if I built it with Laragon.
@ProgramWithGio Жыл бұрын
Not sure if Laragon is meant for production, its just a local development environment. For production you can use something like Digital Ocean & if you need help provisioning, you can use Laravel Forge.
@no_prplem_kpop_anime Жыл бұрын
ok, thank you
@mirkopagano81382 жыл бұрын
Hi, these days I am trying to configure Xdebug inside the php composer. I'm following several tutorials but none of these are exhaustive and above all working ... Do you intend to dedicate a video on Xdebug? (in my case I use vscode as ide)
@ProgramWithGio2 жыл бұрын
That's in my list, hopefully I'll be able to get to it. We'll see.
@wahyunurarizky38602 жыл бұрын
awesome
@ProgramWithGio2 жыл бұрын
Thanks
@samduss41932 жыл бұрын
Wow so far i only played with Xamp, when i run on this tutorial i feel like i receive a Rock on my Face.. hahaha impossible to graps that in 15min hahahha... will go over tutorial and tutorial later about it since docker is not essential to keep going in the course i hope lol ;)
@ProgramWithGio2 жыл бұрын
That's understandable and it's ok. Docker is not a requirement, keep using XAMPP or whatever makes your more productive 🙌
@sujezz2 жыл бұрын
Would be cool to know how to use cdn with apache, everywhere I look for this there's "that's a topic for another video" but pretty much every server I work with have apache not nginx.
@ProgramWithGio2 жыл бұрын
Whenever I say "that's topic for another video", I actually cover it in another video. I can't fit everything into one video, otherwise it would be a giant video. We used Apache in the beginning of the series & since this series is all about learning PHP "the right way" it was important to cover some alternatives to apache, so I decided to cover nginx in second section. We are going to work on a final project at the end of the series & deploy it. I plan on setting up CDN as well there and that's probably where I'll talk about CDN.
@tedybg2 жыл бұрын
Hi Gio, can you recommend a good docker course for beginners? (short and synthesized like yours)
@ProgramWithGio2 жыл бұрын
Hello. Techworld with Nana is a good channel. She has a 3hr course on Docker I believe.
@AmitGupta-cc9fk9 ай бұрын
Sir, I have a problem, Docker is running fine but unable to access localhost:8000, please advice.
@ProgramWithGio9 ай бұрын
Check docker logs and confirm both nginx & fpm container are running
@adamw6893Ай бұрын
I had this problem too - make sure the nginx.conf root and docker-compose volumes use the same location, they should both be /var/www. The nginx.conf was incorrectly set to var/www/public
@drgregoryhouse14702 жыл бұрын
When developing in docker, how do you autoreload your browser on filechanges ?
@ProgramWithGio2 жыл бұрын
You mean hot reload? I have not set that up with Docker, so I'm not sure to be honest.
@drgregoryhouse14702 жыл бұрын
@@ProgramWithGio yes I meant hotreload, smashing F5 is not elegant :D btw your response time is awesome. A rough workaround could be adding header("Refresh:1"), so the page refreshes itself. Can be problematic at some point I guess.
@ProgramWithGio2 жыл бұрын
@@drgregoryhouse1470 Vite has that built in I think for front-end, so you could give it a try. Yea adding refresh every second isn't that good, will become annoying very fast 😁
@zmOe12 жыл бұрын
was my comment deleted? with me comes an error and was after I enter docker-compose up comes the error ERROR: The Compose file '.\docker-compose.yml' is invalid because: 'nginx' does not match any of the regexes: '^x-'
@ProgramWithGio2 жыл бұрын
KZbin sometimes removes comments if it thinks it's a spam. Looks like an error in docker-compose. Compare it to my file and see the difference.
@pasqualealfano6652 Жыл бұрын
Hi Gio, first of all thank you for sharing knowledge in such a shining way! Can you please tell me (or redirect to other resources for me to understand) how to let nginx know what we usually tell to Apache through .htaccess in order to route any request to index.php? Thank you in advance for any explanation/suggestion and keep up the excellent job!
@ProgramWithGio Жыл бұрын
Hey, thank you. Check 10:06 time on this video. It's set to /var/www/public, so you place your index.php within /var/www/public & all requests go through there.
@pasqualealfano6652 Жыл бұрын
@@ProgramWithGio many thanks for your prompt reply! Sorry for having missed the point while watching the video, previously 👌🙏
@ProgramWithGio Жыл бұрын
@@pasqualealfano6652 no worries 👍
2 жыл бұрын
Good video... thanks for your work. have you looked at the dddev project on this topic? For local projects I love ddev because it is Docker based and comes with some nice options and great features. This project is made for php developers like us…maybe another interesting idea for a short video?
@ProgramWithGio2 жыл бұрын
Thank you. No, I have not looked at ddev project, thanks for the suggestion
@peymanGhaderkurehpaz3 жыл бұрын
That was amazing , thanks. can't wait for the other videos. May I ask you to cover things like if we set .ini php config file for this docker container , how can we do that ? And also I would like to ask, is it possible to automatically get https certificates for these nginx php docker files for production, and the last question would be is it posdible to use docker for having multiple domains on the same nginx and php server ? If you cover any of these topics , I would appreciate it.
@ProgramWithGio3 жыл бұрын
Thank you. I'll try to squeeze another lesson on these topics. Though it will probably be in third section of the course or towards the end of second section. I personally wouldn't have two sites on same nginx container, it's simpler to just have second site with different containers on different port, so one site on port 8000, another on port 8001 and so on.
@peymanGhaderkurehpaz3 жыл бұрын
@@ProgramWithGio that is indeed right. Honestly the last question was maybe just for my specific case. I have a saas service which is more like a shop maker. That users can set domains for their shops. So I've been thinking about solutions that can automate this process of having many domains on the same project.
@ProgramWithGio3 жыл бұрын
@@peymanGhaderkurehpaz Got it, yea that makes sense. There are some services out there that let you do that and probably have API that you can integrate with to automate it.
@peymanGhaderkurehpaz3 жыл бұрын
Thanks a lot , I will definitely look for it ❤👌
@DigitaSkills1012 жыл бұрын
Should we always redirect all requests to index file
@ProgramWithGio2 жыл бұрын
Its up to you, though its good practice to have a single entry to the application.
@Sasha-li2bn3 жыл бұрын
Hi Gio, I''ve tripple checked the code and it seems to be the same as yours. Running docker-compose up in terminal was a success and now when I go to localhost:8000 I get a 404 not found /nginx message which is good I guess because I got the containers running but I can't execute anything from index.php. Any idea what might be the problem? (Just localhost doesn't work at all unless XAMP is on which makes sense to me..:D) I get this in my terminal everytime I try to connect: | 172.18.0.1 - - [10/Jan/2022:17:30:57 +0000] "GET / HTTP/1.1" 404 556 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gec ko) Chrome/97.0.4692.71 Safari/537.36"
@ProgramWithGio2 жыл бұрын
Can you share the nginx.conf & docker-compose as well as Docker file screenshots? You can send them on Twitter if you want and I can take a look.
@Sasha-li2bn2 жыл бұрын
@@ProgramWithGio Sent!
@Sasha-li2bn2 жыл бұрын
SOLVED VIA TWITTER: My Index.php was located in the SRC folder only. I did not have it in the PUBLIC folder and the nginx config points to the PUBLIC folder.
@benjaminvenezia19442 жыл бұрын
@@Sasha-li2bn Same issue, add a public folder. src/public/index.php 🌸
@tanzimibthesam58612 жыл бұрын
Awesome can you show one how to in stall Laravel with docker without sail
@ProgramWithGio2 жыл бұрын
Maybe 😏
@gatovsky2 жыл бұрын
why nginx service not have a build context like app services?
@ProgramWithGio2 жыл бұрын
Not sure
@maxwell.63742 жыл бұрын
Hi, can you explain how to run code from GitHub and connect everything to Docker in Windows? I tried docker-compose up in terminal, but all I get is error "no configuration file found". I'm thinking that maybe workdir isn't correct, but I don't know to what I need to change it to work. Thanks in advance!
@ProgramWithGio2 жыл бұрын
You need to execute docker-compose command where the docker-compose.yml is in. So cd in that directory and the run docker compose command
@maxwell.63742 жыл бұрын
@@ProgramWithGio Thank you! That was really helpful, now I can proceed following this amazing tutorial.
@akhileshkumar-iu9uq3 жыл бұрын
What are the technologies needed to build microservice with php
@ProgramWithGio3 жыл бұрын
That is a broad question :). Depends on the application & goals/needs
@plurkpasserby2 жыл бұрын
any idea how to increate the memory limit of this ?. because I cannot find the php.ini in your tutorial...how to set that in docker?
@ProgramWithGio2 жыл бұрын
You will need to create php.ini in docker directory for example & copy it over from either Dockerfile or docker-compose. Google "custom php.ini docker-compose"
@potatosalad694818 күн бұрын
im always getting the default nginx welcome messsage although i did the same thing in the video
@ProgramWithGio16 күн бұрын
Something is probably missing, I'd need to look at the code & configuration to be able to assist
@matiasvargas37072 жыл бұрын
Hi Gio how are you? just a question, is it necessary to have a dockerfile for each image before using docker compose? because i tried, i have a dockerfile for php, nginx and mysql, but the nginx container keeps restarting all the time, and now i saw that you didn't create the nginx dockerfile. Thanks in advance! and sorry if i hadn't smashed the like button on all your videos, they're like drugs and i don't even realize when i'm in a new one :( lol
@ProgramWithGio2 жыл бұрын
Hey, I'm good, thank you. How are you? You need some sort of base image, you dont need to have separate Dockerfiles, can just use the existing images for MySQL for example. If you share your code I can help troubleshoot it. Put it up in GitHub and send me the link in Twitter as well as screenshot of the issue.
@dev_troy890311 ай бұрын
I often hear about vanilla javascript, vanilla php, vanilla linux. what does the term vanilla mean ??
@ProgramWithGio10 ай бұрын
Means without frameworks/libraries, vanilla PHP is just plain PHP
@drgregoryhouse1470 Жыл бұрын
I did not quite understand why there are two seperate containers for the application and for the apache daemon. If i understand the .yml file correctly, the whole project will be mounted into the nginx container and the nginx deamon will process all the requests. And also the whole project will be mounted in the app container. Since the nginx container will not access files from the nginx container, I don't understand whats the purpose of the app container in the first place. Thanks in advance ! :)
@ProgramWithGio Жыл бұрын
Don't forget about fpm, nginx is just webserver
@leenalsous310 ай бұрын
can I install docker compose on Mac? or is it not necessary?
@leenalsous310 ай бұрын
and also, from where can I find the contents of the dockerfile?
@ProgramWithGio10 ай бұрын
I don't know much about mac so cant say for sure. I would research online on how to get Docker installed, you should be able to.
@leenalsous310 ай бұрын
@@ProgramWithGio will do, thank youu
@roilhifrajoibarrahernandez21242 жыл бұрын
I've downloaded github repo, but not working... 502 bad gateway error... can you help me?
@ProgramWithGio2 жыл бұрын
Sure, ping me on Twitter and I can help troubleshoot the issue
@expresscoding3525 Жыл бұрын
Sir, can we follow the course on XAMPP, by not using Docker ?
@ProgramWithGio Жыл бұрын
Yes, you should be able to
@akinniyiakinpelumi85152 жыл бұрын
Can I use php in-built server on php-fpm in docker without using Nginx as server?
@ProgramWithGio2 жыл бұрын
I'm not sure to be honest, I have not used php's built-in server.
@sym2574 Жыл бұрын
Is this episode considered advanced level ? I do not understand most of it , Should I watch it more than one?
@ProgramWithGio Жыл бұрын
This is considered intermediate, Section 1 is basic, Section 2 OOP (intermediate), Section 3 Advanced. Docker is not a requirement, its just an alternative to XAMPP, feel free to keep using XAMPP or Laragon depending on what you are currently using. You can come back to Docker later.
@sym2574 Жыл бұрын
@@ProgramWithGio got it 😁
@Mathias-cq3zo3 жыл бұрын
I tried to replicate this but fail :(. My app has a button which call a bash script. I set "everything right", however when I click this button my container log says """"sh: 1: path/to/script.sh: not found"""" eventhough the path is correct... 😵. Do I have to set special permission to Nginx ?
@ProgramWithGio3 жыл бұрын
Not sure I understand what you mean by a button. Why do you need a button in your app to run a bash script? Is your docker set up properly?
@Mathias-cq3zo3 жыл бұрын
@@ProgramWithGio it is a button on the frontend that call a php function to do some backend validation and then execute a script that do a "git clone" in order to bring an excel file from a repo on gitlab. However everything in the function called does well except executing the script. Thanks in advance!
@ProgramWithGio3 жыл бұрын
It's hard to know what the problem is without looking at the code. It doesn't sound like a docker issue.
@omodev442710 ай бұрын
How can i create a docker image with Microsoft sql server, with exensions enabled php8, nginx? some one help please.
@ProgramWithGio10 ай бұрын
Through a command & some configuration most likely. Do research in google on "install microsoft sql server in docker" & try few options
@omodev442710 ай бұрын
I have tried several commands on Google but non works . I thought you could share a working command
@EllantEladar372 жыл бұрын
I have a problem with this part of the tutorial. Where can I find the dockerfile? NGinx folder? even the index.php of this tutorial? I've successfully installed docker with the linux kernel package on windows 11 however this part right here when I try to access my vscode with the installed Docker plugin and signed-in I cannot see this example no matter how I tried. May I please know what video should I watch before looking into this? It's a pain in the eyes how I can't follow this video tutorial alone.
@ProgramWithGio2 жыл бұрын
There is a link to a GitHub repo in the description (Source Repo), it has Dockerfile & nginx directory. Did you check that? I'm not sure what issue you are having, any specific error? Feel free to DM me on Twitter and I can help troubleshoot it.
@EllantEladar372 жыл бұрын
@@ProgramWithGio thank you sooooo much Sensei Gio. I missed this part my bad. I'm currently using docker version 20.10.16 how do you create a newer version like this kind of coding sensei? Also how do I install NGinx if I'm currently using xampp 8.1.6?
@ProgramWithGio2 жыл бұрын
@@EllantEladar37 you can update docker version or just download the new version. You set up nginx through Docker, it's part of the docker-compose file, it's installed in its own container.
@EllantEladar372 жыл бұрын
@@ProgramWithGio How to setup NGinx in docker Sensei?
@ProgramWithGio2 жыл бұрын
@@EllantEladar37 it's part of this lesson, watch it again. I explain how nginx is installed, it's within a container in docker-compose. 8:00 watch from here