Thank you so much. This is my first time writing docker file for php. this video helps a lot. The image run successfully but I got 500 SERVER ERROR from the website. What could be the reason?. Thanks.
Hi, I tried this on windows. I am getting this error. ERROR: failed to solve: process "/bin/sh -c composer install" did not complete successfully: exit code: 2 This is on the penultimate command in the Dockerfile. Please rectify it.
For local development yep (so you don’t have to install the db directly) in production not necessarily. You’d probably want to use a managed db or deploy onto a vm
The container you create doesn’t package a database. You’ll either want to use docker compose (to bring up additional containers, one of which could be a db) or you could access a db in your local environment. In either case you’ll need to update your environment configuration to match the database you’re connecting to.
Sail is great but more of a development environment (the docker-compose brings up containers to enable local dev for example). This series is the start of how you take your container to production which I would say sail isn’t suitable for (as far as I know it uses runserver). runserver effectively uses the built in php cli web server which should not be used in production.
@@codityco i meant how to write dockerfiles with appropriate layer and know why it is not running . i am having issues on how to write proper Dockerfile.
Oh, well, that was so easy! I've learned how a dockerfile works, how to build an image and run a container. Thank you!
thanks alot ! it's so wasy with detail on dockerFile, that's what I need for firstime
Very easy learning style! Keep up the good work.
I love you man. You make it so simple
Thank you!
@@codityco Can I ask you how you would add laravel-octane inside this deploy?
Yeah that’s going to need a change to the way the dockerfile is provisioned. I’ll give this a look tomorrow and try a publish a new video for it. 👍
@@codityco thank you so much! There is not much documentation about deploys in docker with octain, it would be very helpful.
Thank you so much. This is my first time writing docker file for php. this video helps a lot. The image run successfully but I got 500
SERVER ERROR from the website. What could be the reason?. Thanks.
The best my man!
can you demonstrate how we can run mysql and laravel 11 on docker? its very much needed
You are great!
Hi, I tried this on windows. I am getting this error.
ERROR: failed to solve: process "/bin/sh -c composer install" did not complete successfully: exit code: 2
This is on the penultimate command in the Dockerfile. Please rectify it.
thanks for video. what about php+nginx in one Dockerfile
Man you saved my time, Thanks buddy, small request can you make CICD for php paravel based projects using jenkins
I certainly can. Been a while since I’ve used Jenkins :)
@@codityco Thanks thanks man. If we want to use db then we need to compose the file right ?
For local development yep (so you don’t have to install the db directly) in production not necessarily. You’d probably want to use a managed db or deploy onto a vm
@@codityco Thanks for the help at this time.
so and mysql ?
Is there a specific port to access the database?
The container you create doesn’t package a database. You’ll either want to use docker compose (to bring up additional containers, one of which could be a db) or you could access a db in your local environment. In either case you’ll need to update your environment configuration to match the database you’re connecting to.
Thanks!
I tried to build docker image for laravel inertia app and it didn't work, it always restarting and the image is not healthy, help :(
Do you get any errors?
Thanks man, just decreasing the music level a little bit would be great.
Yeah, going to be doing a new video which is more up to date - so defo will ❤️
if you would decrease the music it would be much clearer, but thanks
how would it differ If I would like to make it using laravel 5.8?
start with developing laravel5.8 and then know all the dependencies and the php verison along with the mysql version required. assemble it
TKM!
助かった
What about Laravel Sail?
Sail is great but more of a development environment (the docker-compose brings up containers to enable local dev for example). This series is the start of how you take your container to production which I would say sail isn’t suitable for (as far as I know it uses runserver). runserver effectively uses the built in php cli web server which should not be used in production.
Cant hear you the music is too loud
how to write dockerfiles
Simply create a text file called Dockerfile at the root of your project (the folder all your project code is in)
@@codityco i meant how to write dockerfiles with appropriate layer and know why it is not running . i am having issues on how to write proper Dockerfile.
Emmm... You forgot workers :)
Hi,
قصرت