How to Dockerize Laravel APP (PHP, Nginx, MySQL, PhpMyAdmin, and Redis.)

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 28

  • @ibagitated
    @ibagitated 24 дні тому +1

    I am really enjoying your video - you explain every step so I that, as a beginner with Docker, I get to understand why I'm doing what you're asking me to do. Keep up the great service to our community!

    • @codewithtee
      @codewithtee  24 дні тому

      @@ibagitated I am happy you enjoyed it. Let me know what you would like me to publish

  • @JailadinShaik8897
    @JailadinShaik8897 Місяць тому +1

    very helpful video, thanks

  • @cristianbarrios5519
    @cristianbarrios5519 Місяць тому +1

    I really appreciate it

  • @famakinwatemitope8983
    @famakinwatemitope8983 4 місяці тому +1

    God bless you for the video

    • @codewithtee
      @codewithtee  4 місяці тому

      Thank you very much, I am happy you found it helpful

    • @codewithtee
      @codewithtee  4 місяці тому

      Yes, it will..
      Just be sure the php version matches the laravel version

  • @Noaman2022
    @Noaman2022 Місяць тому +1

    Can this work for laravel 10 ?

  • @AlirezaPd-j8v
    @AlirezaPd-j8v 2 місяці тому

    thanks for your great video.i get this error when i run docker-compose build command:
    services.laravel_eleven_app.build must be a string.
    could you plz give me a solution how to fix this??

    • @codewithtee
      @codewithtee  2 місяці тому +1

      @@AlirezaPd-j8v invite me to the repo, I need to see your docker and docker compose file #harmlessprince

  • @charles-harisbouassebukomb8133
    @charles-harisbouassebukomb8133 2 місяці тому

    do you think that with apache it will be the same process???

    • @codewithtee
      @codewithtee  2 місяці тому

      @charles-harisbouassebukomb8133@@charles-harisbouassebukomb8133 apache will be quite different, you will need another Dockerfile for that

    • @codewithtee
      @codewithtee  2 місяці тому

      I will try to create one for apache

    • @charles-harisbouassebukomb8133
      @charles-harisbouassebukomb8133 2 місяці тому

      @@codewithtee okay, I’m currently working on it, your video was really helpful, but I am still stacked because the conf file in my local sever was not transferred to the container

    • @codewithtee
      @codewithtee  2 місяці тому

      make sure you are mounting your config in the right path.. If you still can't figure it out.. Shoot me a mail realolamilekan@gmail.com

    • @charles-harisbouassebukomb8133
      @charles-harisbouassebukomb8133 2 місяці тому

      @@codewithtee alright

  • @famakinwatemitope8983
    @famakinwatemitope8983 4 місяці тому

    Will the setup work with laravel 8 too?

  • @albaprogrammer2710
    @albaprogrammer2710 2 місяці тому

    thanks for your tutorial sir. how about dockerize laravel in production environment ? can you give best practice for it?
    i would be happy if you colud make the video tutorial 😊🙏

    • @codewithtee
      @codewithtee  2 місяці тому

      @@albaprogrammer2710 this works in production as well... The only difference is, in production you just swap your database credentials and all..
      Also in production you will run your docker in detached mode.

    • @albaprogrammer2710
      @albaprogrammer2710 2 місяці тому

      ​@@codewithtee hmmm okey, but what about optimization ? maybe we can more optimize the Dockerfile, ex we can use php:8.3-alpine, also remove useless code like tests folder, etc. or maybe we use the multistage
      sorry if i'm wrong 🙏

    • @albaprogrammer2710
      @albaprogrammer2710 2 місяці тому

      i try to build the image from your Dockerfile, and the size of image is 740MB. is that normal ? or maybe it can still be optimized again ?

    • @codewithtee
      @codewithtee  2 місяці тому

      @@albaprogrammer2710 php apline is only lighter in terms of size, tests folders are never going to be the reason your application is slow....

    • @codewithtee
      @codewithtee  2 місяці тому

      @@albaprogrammer2710 I don't think you need to push to docker image, it is not a necessity...
      If you want a docker file or configuration specific for prod, you can create another docker compose file that you will only run in production, you can pass the name of your docker compose file