Install and Set Up Laravel with Docker Compose

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

КОМЕНТАРІ • 93

  • @renends7615
    @renends7615 Рік тому +3

    Great video!
    Videos like this are rare. Errors are important for us to know what to do to correct errors.
    Thanks!

    • @hanieasemi
      @hanieasemi  Рік тому +1

      It's great to hear from you.

    • @renends7615
      @renends7615 Рік тому +1

      @@hanieasemi Congratulations on your channel.
      Keep up with this excellent work!
      Thanks!

  • @_RdN
    @_RdN Рік тому +1

    I managed to install composer and other dependencies using Dockerfile RUN command. Everything went fine!
    Thank you!

  • @hoosinrafie9401
    @hoosinrafie9401 Рік тому +1

    خیلی عالی بود به ساده ترین شکل ممکن بیان کردید الان حدود ۳ ماه هست هر ویدیدیی میدیدم از داکر متوجه نمی‌شدم چون هیچ پیش‌زمینه ای نداشتم ازش ولی آموزش شما خیلی کمک کرد بهم و الان درک بهتری دارم از داکر ❤❤

    • @hanieasemi
      @hanieasemi  Рік тому

      ممنون که ویدیو رو نگاه کردید و خوشحالم که تونسته کمکتون کنه 🤟

  • @mrparadox9683
    @mrparadox9683 Рік тому

    Thanks, simple & clean!
    You saved me, after all the time i wasted watching other videos. 🙏🙏

  • @stepphriw
    @stepphriw Рік тому +1

    Thanks you , you just save my life .

  • @biniamin2341
    @biniamin2341 5 місяців тому

    Its a mind blowing tutorial.

  • @adamcampbell280
    @adamcampbell280 Рік тому +4

    I could be missing something, but is there a gap in the video? It seems to jump from the phpMyAdmin section to building the application, missing out the app docker-compose service and making the Dockerfile?

  • @MuhamadAzizPrasetyo
    @MuhamadAzizPrasetyo Рік тому +1

    Thank u so much!!!!

  • @marshalldteach1109
    @marshalldteach1109 2 роки тому +1

    Thank you, this is very helpful.

  • @davthecoder
    @davthecoder Рік тому

    amazing video 👏

  • @m.yasirshakil979
    @m.yasirshakil979 Рік тому +1

    Great video

  • @amir_p_dev
    @amir_p_dev 2 роки тому +1

    Great video!

  • @hamidrezaamini9365
    @hamidrezaamini9365 2 роки тому +1

    So much great 👏

  • @alifallahrn
    @alifallahrn 2 роки тому +1

    That was so helpful, thank you ✌

    • @hanieasemi
      @hanieasemi  2 роки тому

      Thanks for watching🙏🏻

  • @jeetghodasra3273
    @jeetghodasra3273 Рік тому

    Your video was so inspiring! You have a great talent for motivating others. Keep sharing y💪 our 😃 positivity 💪 with 😃 the 💪 world 😃 through 💪 your 😃 UA-cam 💪 channel 😃! Keep 💪 it 😃 up 💪😃

  • @dream-kp6yw
    @dream-kp6yw Рік тому

    مرسی خیلی خوب بود مشکل من حل شد

  • @amid6887
    @amid6887 Рік тому +1

    nice video. was able to learn something new. i have 2 more things. 1. how do i take docker+laravel to another server? 2. how do i upgrade docker+laravel both?

    • @hanieasemi
      @hanieasemi  Рік тому

      For running another project you need to create another docker-compose file in its directory and update the container name and ports of each service.

  • @silenthill47
    @silenthill47 Рік тому

    Informative one. I have been learning docker but i am getting confused as different folks do it differently. Here i am confused that why you didn't use Dockerfile.
    Can you create another video for clearing my confusion?
    Using laravel, Nginx, MySQL.
    And how to work with docker some other developer? If possible please do one more.
    Thank You.

  • @quangminhpham1817
    @quangminhpham1817 2 роки тому +1

    very useful 😊

  • @JacksonKon
    @JacksonKon Рік тому

    Oh shit! I forgot to write the APP part but I have posted the video😮

  • @aysegulbulut40
    @aysegulbulut40 5 місяців тому

    Hello, you did not create a docker file, I am getting an error about this. I will use mysql, when I followed your steps, the container was not created, can you help me?

    • @hanieasemi
      @hanieasemi  5 місяців тому

      Hi, did you check the GitHub repo?
      You can find the Dockerfile here: github.com/hanieas/Docker-Laravel
      Let me know if you have any problem

  • @soufyensk5210
    @soufyensk5210 Рік тому

    well explained 😉

  • @ariog.iswahyudi5243
    @ariog.iswahyudi5243 8 місяців тому

    did you have installed php & composer natively alongside docker ? it's look laravel has running well before binding to docker volume

    • @hanieasemi
      @hanieasemi  7 місяців тому

      Sorry I didn't get your question. Could you please explain it more?

  • @GergelyCsermely
    @GergelyCsermely Рік тому

    Thank You!

  • @rapiddev2611
    @rapiddev2611 Рік тому

    good one

  • @AMITJOSHIp
    @AMITJOSHIp Рік тому +1

    superb tutorial, just one concern, it takes little more time while refreshing page to see changes.
    is it normal behavior in docker ?
    and where you have mentioned OS like ubuntu ?
    How can run docker by putting code inside ubuntu wsl from windows ?
    pls guide.

  • @raveesgohiel8847
    @raveesgohiel8847 Рік тому +1

    I have a problem with app:
    I copied the code for app: from github. But i get an error
    build path /php either does not exist, is not accessible, or is not a valid URL.

    • @hanieasemi
      @hanieasemi  Рік тому

      Could you please share your problem via email?

  • @viquanghoa
    @viquanghoa Рік тому +1

    thank you

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

    Hi, I want to do something like DevOps and I don't have the vendor folder in the project. In the image, I need to run "composer install," but it seems like the nginx container will also need this command. Is that right? Cheers!

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

      Hi, You need to run this command inside the application container, for example if you're container name is app go inside this container: docker compose exec app bash
      Then run composer install.
      Nginx is just a web server it doesn't need this command. This is just for installing packages. Check this link out:getcomposer.org/doc/00-intro.md

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

      @@hanieasemi thanks you, other thing, I have index.php in root folder, not in public, and nginx set path to public

  • @seyranselimov6694
    @seyranselimov6694 8 місяців тому

    Could you create video about install supervisor to docker?

    • @hanieasemi
      @hanieasemi  8 місяців тому

      Thanks for watching, Sure I'll consider it.

  • @김준엽-q3s
    @김준엽-q3s Рік тому

    감사합니다😊

    • @hanieasemi
      @hanieasemi  Рік тому

      시청 해주셔서 감사합니다 🙂

  • @stepphriw
    @stepphriw Рік тому

    may i have run on docker desktop , if i dont want to open vscode then use command "docker-compose -d". On my Docker desktop didnt show a container, so i cant click run on that. i have to open vscode and run it.

  • @webdeveloper357
    @webdeveloper357 Рік тому

    Great video!

  • @aleksandarsavanovic4746
    @aleksandarsavanovic4746 9 місяців тому

    Thank you, but can you please tell us how can we dockerize apps thath are cloned from git , we need to do composer install, i was unabel to do thath true docker for my laravel 5.8 app thath is using composer v1?

    • @hanieasemi
      @hanieasemi  6 місяців тому

      It doesn't matter where did you get the project. You can create a docker-compose file and a Dockerfile which you can define php version in this file.

  • @soufyensk5210
    @soufyensk5210 Рік тому

    as i know theres sail built in with laravel do all job is it the same thing ?

  • @ashique12009
    @ashique12009 Рік тому

    Good one but after putting docker-compose up -d it shows nginx container exited immediately. Any thoughts on this issue?
    Thanks!

    • @hanieasemi
      @hanieasemi  Рік тому

      Thanks for watching! please check the conf.d file and make sure it sets up correctly.

  • @dream-kp6yw
    @dream-kp6yw Рік тому

    salam man ye soual daram vaghty ke proje ra build mikonim vaghty ro proje code hara avaz konim dakhele on proje update nmishe bayad chikar bokonim?

    • @hanieasemi
      @hanieasemi  Рік тому

      Did you add working_dir: /var/www to the app container?

    • @dream-kp6yw
      @dream-kp6yw Рік тому

      🥴@@hanieasemi you know I made a mistake in addressing 😞 thank you🤍

  • @arifrizveezishan9054
    @arifrizveezishan9054 Рік тому

    docker compose command not work in your project

  • @nhanoan5461
    @nhanoan5461 11 місяців тому

    this tutorial missing the create Dockerfile in folder php step

    • @hanieasemi
      @hanieasemi  6 місяців тому

      This file can be changed based on your needs, so I prefer not to talk about more details and finish the tutorial in a reasonable time

  • @CarlosEduardo-oo4tf
    @CarlosEduardo-oo4tf Рік тому +1

    only bad thing in your video is the part where you skipped the dockerfile shit

  • @AftabAhmedMinhas
    @AftabAhmedMinhas Рік тому

    I am getting error "validating D:\wamp64\www\docker\docker-compose.yml: services.app must be a mapping". I am following the video and app: is empty.. do i need to add image and container_name in it ?

  • @jeannep8378
    @jeannep8378 7 місяців тому

    does this still work today?

  • @VietNambushes
    @VietNambushes Рік тому

    i can not login to phpmyadmin

  • @imranlashari6578
    @imranlashari6578 10 місяців тому

    why ngnix?

  • @kiennguyencong5459
    @kiennguyencong5459 2 роки тому +1

    good girl

  • @juantevez9267
    @juantevez9267 2 роки тому

    hello
    how to run npm run dev for vite?

    • @keivanpourzang4633
      @keivanpourzang4633 2 роки тому

      Open your container terminal using terminal itself or open it from docker panel interface and run it there

    • @juantevez9267
      @juantevez9267 2 роки тому

      @@keivanpourzang4633 not listening to vite port 300

    • @karlson2804
      @karlson2804 2 роки тому

      ​@@juantevez9267 do you find an answer ?

  • @alleneben5715
    @alleneben5715 3 місяці тому

    Why did you skip some steps.

    • @hanieasemi
      @hanieasemi  3 місяці тому

      What steps would you like to explain? I can make another video.

    • @alleneben5715
      @alleneben5715 3 місяці тому

      @@hanieasemi I did not see the php and laravel setup in the video

  • @ebrahem-dev
    @ebrahem-dev 7 місяців тому

    your video is incomplete!

    • @hanieasemi
      @hanieasemi  6 місяців тому

      What can I do to complete the video?

  • @karlkrasnowsky3895
    @karlkrasnowsky3895 Рік тому

    Hi Hanie, thanks for your course. After getting a build error when working through the tutorial steps, I pulled your repository... per instructions switched from postgres to mysql and attempted to run. Build went fine, but on trying localhost:8080 ,
    Warning: require(/var/www/public/../vendor/autoload.php): Failed to open stream: No such file or directory in /var/www/public/index.php on line 34
    Fatal error: Uncaught Error: Failed opening required '/var/www/public/../vendor/autoload.php' (include_path='.:/usr/local/lib/php') in /var/www/public/index.php:34 Stack trace: #0 {main} thrown in /var/www/public/index.php on line 34
    any idea?

    • @karlkrasnowsky3895
      @karlkrasnowsky3895 Рік тому

      Just forked your own git repo, no changes, built, started, and same error on localhost:8080

    • @hanieasemi
      @hanieasemi  Рік тому

      @@karlkrasnowsky3895 did you install composer?

    • @karlkrasnowsky3895
      @karlkrasnowsky3895 Рік тому

      @@hanieasemi yes, of course.

  •  Рік тому

    Parse error: syntax error, unexpected identifier "string", expecting variable in /var/www/vendor/sebastian/version/src/Version.php on line 25 I don't know this.

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

    Nice @hanieasemi

  • @rizhuljanuar1618
    @rizhuljanuar1618 Рік тому

    make: *** No rule to make target '/usr/src/php/ext/tokenizer/Zend/zend_language_parser.y', needed by '/usr/src/php/ext/tokenizer/Zend/zend_language_parser.c'. Stop.
    i make php8.2