Docker+Laravel+Mysql easy and professional way.

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • This tutorial on docker environment for laravel + mysql , I also given an instruction how you can create make file for make your docker command more easy.
    Update php ini file in docker : • Docker change php ini ...
    Source : github.com/pit...
    Previous tutorial : • Laravel docker without...
    Facebook: / pito.cms
    What's app: 8801737810405

ความคิดเห็น • 124

  • @jonathasrbr
    @jonathasrbr ปีที่แล้ว +23

    This is one of the best video about docker compose that I've been watched. It contributed so much with my automation task. Thank you man!

    • @pitocms
      @pitocms  ปีที่แล้ว

      Glad it was helpful! Welcome.

  • @domainexpress
    @domainexpress ปีที่แล้ว +6

    i agree with another persons comments in that this tutorial is very good. I am senior developer and needed a laravel/docker setup. I also looked around and found this video concise, easily explained and very useful. Thank you Alimon !

    • @pitocms
      @pitocms  ปีที่แล้ว

      Great to hear!

  • @laodemuhamadaslan4595
    @laodemuhamadaslan4595 9 วันที่ผ่านมา

    terima kasih bang, saya sudah berhasil setup laravel di docker, salam dari indonesia bang👋

  • @codemoron_
    @codemoron_ ปีที่แล้ว +3

    Thank you for this. Finally, I was able to setup Laravel in docker.

  • @CloudTechExpert
    @CloudTechExpert ปีที่แล้ว

    Thank you very much for this amazing tutorial. For the first time, I managed to dockerize the Laravel app. I had error 403 but after going through comments I found solutions. Thank you once again.

  • @saaddarell9174
    @saaddarell9174 ปีที่แล้ว

    The best video for getting started with Docker. Simple, to the point.

  • @JohnSmithhh
    @JohnSmithhh หลายเดือนก่อน

    Thank man!! I understand a lot better now, using a Makefile is awesome, I'm still a little bit stuck because my dockerfile is in the root of the app, but I will figure it out how to manage all that (copy files + launch artisan)

  • @bharathraj3333
    @bharathraj3333 ปีที่แล้ว +1

    clear and good.. always indian techies rocks.

  • @Howto-ds7cx
    @Howto-ds7cx ปีที่แล้ว +1

    Best video for docker compose laravel. ❤

    • @pitocms
      @pitocms  ปีที่แล้ว

      Thank you.

  • @aleksandrsh3893
    @aleksandrsh3893 9 หลายเดือนก่อน

    Величезне спасибі. Чудовий урок. Thanks a lot. Great lesson.

  • @ariwahyunahar2601
    @ariwahyunahar2601 2 หลายเดือนก่อน

    the best video I got, how to use docker. Tks bro.

  • @mubafaw
    @mubafaw 7 หลายเดือนก่อน

    You are a legend. Make my life easy. Thank you Sir.

  • @mbiregueye2988
    @mbiregueye2988 ปีที่แล้ว

    A best tuto for Larevel / Docker and Mysql

    • @pitocms
      @pitocms  ปีที่แล้ว

      Glad it was helpful!

  • @rabigorkhali
    @rabigorkhali 10 หลายเดือนก่อน

    Thanks for the simple and best tutorial. This tutorial saved my day

    • @pitocms
      @pitocms  10 หลายเดือนก่อน

      You're welcome!

  • @DM-fn7py
    @DM-fn7py 2 หลายเดือนก่อน

    Hello Sir,Thanks a lot for your English tutorial, i appreciate so much, please i need an english tutorial about redis and MySQL in laravel. You are the best. You deserve my subscribe and likes.thanks

  • @semuthitam2211
    @semuthitam2211 9 หลายเดือนก่อน

    finally i can install laravel in with docker thanks you hero.. :)

  • @lasithadulshan7357
    @lasithadulshan7357 7 หลายเดือนก่อน +1

    Thank you for the valuable content!

  • @sashetrajkovski6006
    @sashetrajkovski6006 ปีที่แล้ว

    Same comment as the rest, great video ! You earned one more subscriber today. Great work !

    • @pitocms
      @pitocms  ปีที่แล้ว

      Thank you 😊 and welcome.

  • @afrazahmadkhokhar
    @afrazahmadkhokhar ปีที่แล้ว

    ❤❤❤
    Just like is not enough for this video.
    Great content.

  • @shahadathossain-i5v
    @shahadathossain-i5v 27 วันที่ผ่านมา

    Can you please make another tutorial to dockerize a Laravel and vue js application?
    NB. Application should run on a virtual host

  • @bevedel
    @bevedel 2 หลายเดือนก่อน

    really helpful. thank you.

    • @pitocms
      @pitocms  2 หลายเดือนก่อน

      Glad it was helpful!

  • @mlabdev
    @mlabdev ปีที่แล้ว

    its work on me ... thanks sir you save my life

    • @pitocms
      @pitocms  ปีที่แล้ว

      Glad to hear that.

  • @autodidactewebdev2368
    @autodidactewebdev2368 2 หลายเดือนก่อน

    Thanks sir,please could you make a tutorial about redis and MySQL in laravel. Thanks indeed.

  • @carminemonaco9796
    @carminemonaco9796 ปีที่แล้ว +1

    Hi. Congratulations on the very accurate video. Could you answer one question for me? I can't figure out how to dockerize my Laravel project and publish it on my server. I have created a site with Laravel and Docker locally but I can't find any tutorial that explains then how to make my site public from the server. Do you happen to have a tutorial that explains this?
    Thank you very much

  • @yudantyodev-zm3hc
    @yudantyodev-zm3hc 2 หลายเดือนก่อน

    superb tutorial thanks sir

  •  9 หลายเดือนก่อน

    Very good, man!
    Thank you very much!

  • @rony2alamin201
    @rony2alamin201 9 หลายเดือนก่อน

    Very Nice & Helpful video

  • @faizanshakil2775
    @faizanshakil2775 ปีที่แล้ว +3

    Why I try to run make commads it says "make : The term 'make' is not recognized as the name of a cmdlet....". Can you please tell me how will it work ?

    • @faizanshakil2775
      @faizanshakil2775 ปีที่แล้ว

      I am on windows 10

    • @pitocms
      @pitocms  ปีที่แล้ว

      Source has given in video description. Please download and run then check.

  • @maroofsultan7098
    @maroofsultan7098 19 วันที่ผ่านมา

    Thanks for make my life easy but sir Makefile command donot run on Windows any solution?

  • @cabrelngako8877
    @cabrelngako8877 9 หลายเดือนก่อน +1

    hello, what does it means that a beginner will need to make a composer update in the docker container, i am working in a existing project and i find it difficult to update changes, iam getting error related to permission access

    • @pitocms
      @pitocms  9 หลายเดือนก่อน +1

      Create a .htaccess file in root directory using below 3 lines of code.
      RewriteEngine On
      RewriteCond %{REQUEST_URI} !^/public/
      RewriteRule ^(.*)$ /public/$1 [L,QSA]

    • @mubafaw
      @mubafaw 7 หลายเดือนก่อน

      @cabrelngako8877 Thank you for asking this question
      @pitocms Thank you for answering this question
      It works for me now 😊🙏

  • @t1000bay
    @t1000bay 9 หลายเดือนก่อน

    Good explanation 😊

  • @kentOlortigue
    @kentOlortigue 5 หลายเดือนก่อน

    Thanks for the information

    • @pitocms
      @pitocms  4 หลายเดือนก่อน

      My pleasure.

  • @AhmedSaadHassan
    @AhmedSaadHassan 3 หลายเดือนก่อน

    great job, thank you

  • @attran2001
    @attran2001 7 หลายเดือนก่อน

    i just start learning docker for 1 day, do you have any videos can help me know more about docker with laravel

  • @mayrapereira3910
    @mayrapereira3910 ปีที่แล้ว +3

    when I enter the browser with localhost:9000 it gives this error : Not Found
    The requested URL was not found on this server.
    Apache/2.4.51 (Debian) Server at localhost Port 9000

    • @EvanEdrok
      @EvanEdrok 5 หลายเดือนก่อน

      should use Laravel Sail, it's just so much easier. Before you use `sail up -d` you can add phpmyadmin to the docker-compose file if you wanted.

  • @updatetamila007
    @updatetamila007 ปีที่แล้ว

    Great Buddy good learner

    • @pitocms
      @pitocms  ปีที่แล้ว

      Thank you! Cheers!

  • @adimStan
    @adimStan ปีที่แล้ว

    Best explanation

    • @pitocms
      @pitocms  ปีที่แล้ว +1

      Thanks for liking

  • @prouser12121
    @prouser12121 6 หลายเดือนก่อน

    Excellent

  • @protapbarman2532
    @protapbarman2532 หลายเดือนก่อน

    please explain the ".env file will not be uploaded in git"

  • @techietoons
    @techietoons ปีที่แล้ว +1

    Forbidden
    You don't have permission to access this resource.
    Apache/2.4.54 (Debian) Server at localhost Port 80
    - What to do for this error ??

    • @subhankardutta3777
      @subhankardutta3777 10 หลายเดือนก่อน

      Getting same error

    • @arnoldsibanda7135
      @arnoldsibanda7135 7 หลายเดือนก่อน

      you can check if files are there in your conatiner through an interactive shell@@subhankardutta3777

  • @SchoolBoyJoooooo
    @SchoolBoyJoooooo 4 หลายเดือนก่อน

    i have a problem, i already followed all your steps but when i try to access the laravel through localhost:9000 it says permission denied could you help me to fix this? btw the laravel project were cloned from github

  • @dev_99999
    @dev_99999 7 หลายเดือนก่อน

    if i have an existing laravel app how to copy files after clone it or clone it while buidling the container

  • @zahidurrehman431
    @zahidurrehman431 8 หลายเดือนก่อน

    Sir which docker plateform you have using please mentioned his name?

  • @forservice1977
    @forservice1977 ปีที่แล้ว

    today when i am trying in ubuntu machine i am getting this error open /media/mypc/Project/doker-test/laravel-docker/docker-compose.yml: permission denied, how can i solve this issue

  • @fatihtutar7583
    @fatihtutar7583 3 หลายเดือนก่อน

    There were deficiencies in the docker-compose.yaml file and it was giving an error. After fixing it with chatgpt, docker-compose build command worked.
    I was able to view phpmyadmin at address 9001, but I could not view the Laravel project at address 9000. It gave this error. It doesn't show any Laravel project in the video anyway.
    Forbidden
    You don't have permission to access this resource.
    Apache/2.4.51 (Debian) Server at localhost Port 9000

    • @pitocms
      @pitocms  3 หลายเดือนก่อน

      check in localhost:9000/public

    • @fatihtutar7583
      @fatihtutar7583 3 หลายเดือนก่อน

      @@pitocms After making some changes to the apache2.conf file the above error went away. Currently, the files of the Laravel project are listed under index of at address 9000. In 9000/public, I get the following error:
      file_put_contents(/var/www/html/storage/framework/sessions/LBKd3CGRLbNj6kF96mm2ChURTLRjIxxB7EsvI7oc): Failed to open stream: Permission denied

    • @fatihtutar7583
      @fatihtutar7583 3 หลายเดือนก่อน

      @@pitocms
      docker exec -it laravel-docker bash
      chmod -R 775 storage
      chown -R www-data:www-data storage

    • @chiqui1234ok
      @chiqui1234ok 2 หลายเดือนก่อน

      @@pitocms Hi, my problem is, docker isn't creating anything inside "laravel-app" folder. What can I do? I have exact same file as you. I already give 777 permissions into that folder, just in case

  • @helvionobrega7709
    @helvionobrega7709 ปีที่แล้ว +1

    Hello I have one error... I did all the tutorial i can entry in phpmyadmin but i cant acess the image that contains the project "views" it opens the website with this error
    "Forbidden
    You don't have permission to access this resource.
    Apache/2.4.51 (Debian) Server at localhost Port 9000 " Can you help me?

    • @pitocms
      @pitocms  ปีที่แล้ว +4

      Create a .htaccess file in root directory using below 3 lines of code.
      RewriteEngine On
      RewriteCond %{REQUEST_URI} !^/public/
      RewriteRule ^(.*)$ /public/$1 [L,QSA]

    • @cassianopacheco5407
      @cassianopacheco5407 ปีที่แล้ว

      i created a htacess file in the laravel-app directory and another one in the root directory. It worked. @pitocms you're a hero

    • @fuukowatty9817
      @fuukowatty9817 ปีที่แล้ว

      @@pitocms is this safe?

    • @IgorOliveira-kv8sf
      @IgorOliveira-kv8sf 10 หลายเดือนก่อน

      ​@@pitocms

  • @mehrabhosen
    @mehrabhosen ปีที่แล้ว

    Helpful Video

    • @pitocms
      @pitocms  ปีที่แล้ว

      Glad it helped.

  • @sunmolasolomon3403
    @sunmolasolomon3403 ปีที่แล้ว

    Thank you for this tutorial
    I can't seems to access the localhost gives forbidden and no permission to access this resource.
    Thank you

    • @pitocms
      @pitocms  ปีที่แล้ว +1

      It seems htaccess issue. please check in /public , is it working ?

  • @montecristo31
    @montecristo31 ปีที่แล้ว

    thanks!

  • @nhanoan5461
    @nhanoan5461 10 หลายเดือนก่อน +2

    hi,i try more code in Makefile : "laravel-run:
    docker exec laravel-docker bash -c "php artisan serve" " but it got Forbidden
    You don't have permission to access this resource.when i open the web

    • @blessdarah1256
      @blessdarah1256 หลายเดือนก่อน

      You don't need that. That environment mimics production. So you will access the app through Apache. You only need the container to be up.

  • @cassianopacheco5407
    @cassianopacheco5407 ปีที่แล้ว

    you're a fucking legend, mate

  • @EduCodigosPro
    @EduCodigosPro 6 หลายเดือนก่อน

    localhost:9000 says:
    Forbidden
    You don't have permission to access this resource.
    Apache/2.4.57 (Debian) Server at localhost Port 9000

  • @Howto-ds7cx
    @Howto-ds7cx ปีที่แล้ว

    How to run vite and node npm commands. Please guide

  • @kavithak1138
    @kavithak1138 ปีที่แล้ว

    Yes containers are up

    • @pitocms
      @pitocms  ปีที่แล้ว

      Without see difficult to tell what's the problem.
      Come is google meet if you require quick help.

    • @kavithak1138
      @kavithak1138 ปีที่แล้ว

      Yes please

  • @93stiven
    @93stiven ปีที่แล้ว

    ERROR: The Compose file './docker-compose.yml' is invalid because:
    Unsupported config option for services: 'phpmyadmin
    linux :/

  • @hafiznugraha3063
    @hafiznugraha3063 ปีที่แล้ว

    how to change limit import file on docker phpmyadmin

  • @DevelopmentKit
    @DevelopmentKit ปีที่แล้ว

    What software have you used to record your video?

  • @1mpiero
    @1mpiero 7 หลายเดือนก่อน +3

    This is beginner and not professional,

  • @protapbarman2532
    @protapbarman2532 หลายเดือนก่อน

    make command not found

  • @MinhTuanNguyen-hx6ye
    @MinhTuanNguyen-hx6ye ปีที่แล้ว

    i can't sign in phpmyadmin, please help

  • @michaelgyawu7929
    @michaelgyawu7929 ปีที่แล้ว

    Great Tutorial. I have followed all the instructions to set up the laravel project. Also I applied the response to @Hélvio Nóbrega's problem. However, I still get "Forbidden
    You don't have permission to access this resource." Has anyone solved this problem?

    • @pitocms
      @pitocms  ปีที่แล้ว

      It's seems htaccess issue. Create a htaccess file in root directory.

    • @IgorOliveira-kv8sf
      @IgorOliveira-kv8sf 10 หลายเดือนก่อน

      @@pitocms im with same problem, i created .htacces file but isnt work....can u help with this? goal is use views from laravel project but isnt woring :(

  • @HasanKarar
    @HasanKarar ปีที่แล้ว

    প্রথম

    • @pitocms
      @pitocms  ปีที่แล้ว

      Thank you Bhai. 😊💓

  • @kavithak1138
    @kavithak1138 ปีที่แล้ว

    But url is not found

  • @ABC-hr9eu
    @ABC-hr9eu 10 หลายเดือนก่อน

    docker exac -it laravel-docker bash
    unknown shorthand flag: 'i' in -it

    • @bhaveshkapoor8183
      @bhaveshkapoor8183 6 หลายเดือนก่อน

      check whether the container is running in background or not and then exec the same

  • @fuukowatty9817
    @fuukowatty9817 ปีที่แล้ว

    Hi you know how can I add next.js to this stack?

    • @pitocms
      @pitocms  ปีที่แล้ว

      How you are trying
      Laravel API + Vue js ?

    • @fuukowatty9817
      @fuukowatty9817 ปีที่แล้ว

      @@pitocms I made project with next.js actually so it must be next ;/

    • @fuukowatty9817
      @fuukowatty9817 ปีที่แล้ว

      so Laravel API + next.js I found example with sail but there is not frontend container installed

  • @alimulmahfuztushar7001
    @alimulmahfuztushar7001 ปีที่แล้ว

    php artisan serve giving 403 forbidden error

    • @pitocms
      @pitocms  ปีที่แล้ว +1

      check in /public is it working ? If work then create .htaccess file in root directory.

  • @kavithak1138
    @kavithak1138 ปีที่แล้ว

    Yes need help

  • @kariukijoseph2036
    @kariukijoseph2036 2 หลายเดือนก่อน

    Professional way? Really?

  • @ThienTran-wi2pq
    @ThienTran-wi2pq ปีที่แล้ว

    help me how to fix error The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened in append mode: Failed to open stream: Permission denied on windows10.

  • @scottmcmullan6497
    @scottmcmullan6497 ปีที่แล้ว

    Fantastic video, thanks mate!

    • @pitocms
      @pitocms  ปีที่แล้ว

      You are most welcome

  • @radybmcs6516
    @radybmcs6516 ปีที่แล้ว +1

    How to execute Makefile sir I cannot run this file

    • @pitocms
      @pitocms  ปีที่แล้ว

      Just create a file with name 'Makefile', in same directory where you Docker and docker-compose.yml file is.
      Then in make file write your command.
      Example
      build:
      docker-compose build --no-cache --force-rm
      Then given command in terminal
      make build

    • @radybmcs6516
      @radybmcs6516 ปีที่แล้ว +1

      @@pitocms make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
      spelling of the name, or if a path was included, verify that the path is correct and try again.
      At line:1 char:1
      + make up

    • @pitocms
      @pitocms  ปีที่แล้ว

      What is your operating system ? Are you using VScode ?

    • @radybmcs6516
      @radybmcs6516 ปีที่แล้ว

      @@pitocms I am using Windows 10

    • @pitocms
      @pitocms  ปีที่แล้ว

      The error message you're seeing indicates that the "make" command is not recognized by Windows. This is because "make" is not a built-in Windows command.
      Assuming that you have already installed Docker on your Windows 10 machine, you will need to install a separate tool called "make" in order to run the "docker make" command.
      You can install "make" on Windows 10 using one of the following methods:
      Install the GNU Win32 package, which includes the "make" command. You can download the package from the GNU website (sourceforge.net/projects/gnuwin32/files/make/) and install it on your Windows 10 machine.
      Install the Windows Subsystem for Linux (WSL) on your Windows 10 machine and then install the "make" command using the Linux package manager (e.g., apt-get for Ubuntu).
      Once you have installed "make", you should be able to run the "docker make" command without seeing the error message.