Install and Set Up Laravel with Docker Compose

Поделиться
HTML-код
  • Опубликовано: 13 янв 2025

Комментарии • 94

  • @guilhermetorres3000
    @guilhermetorres3000 Месяц назад

    Thanks! I was searching for this for a long time, It's dificult to see a pratical video installing Laravel without Sail

  • @_RdN
    @_RdN Год назад +1

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

    • @hanieasemi
      @hanieasemi  Год назад

      Thanks for watching.

    • @OscarGemona
      @OscarGemona 10 месяцев назад

      How did you do that? Thanks

  • @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!

  • @mrparadox9683
    @mrparadox9683 Год назад

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

  • @hoosinrafie9401
    @hoosinrafie9401 Год назад +1

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

    • @hanieasemi
      @hanieasemi  Год назад

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

  • @biniamin2341
    @biniamin2341 8 месяцев назад

    Its a mind blowing tutorial.

  • @stepphriw
    @stepphriw Год назад +1

    Thanks you , you just save my life .

  • @dream-kp6yw
    @dream-kp6yw Год назад

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

  • @JacksonKon
    @JacksonKon Год назад

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

  • @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?

    • @MonkeyWise07
      @MonkeyWise07 Год назад +1

      yes, I also realize that, app service have no configuration

    • @تلاواترائعة-ث7د
      @تلاواترائعة-ث7د 11 месяцев назад

      Yes there's a gap in the video, that's why i gave here a dislike

  • @marshalldteach1109
    @marshalldteach1109 2 года назад +1

    Thank you, this is very helpful.

  • @alifallahrn
    @alifallahrn 2 года назад +1

    That was so helpful, thank you ✌

    • @hanieasemi
      @hanieasemi  2 года назад

      Thanks for watching🙏🏻

  • @davthecoder
    @davthecoder Год назад

    amazing video 👏

  • @m.yasirshakil979
    @m.yasirshakil979 2 года назад +1

    Great video

  • @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.

  • @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 😃 RUclips 💪 channel 😃! Keep 💪 it 😃 up 💪😃

  • @amir_p_dev
    @amir_p_dev 2 года назад +1

    Great video!

  • @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.

  • @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.

  • @ariog.iswahyudi5243
    @ariog.iswahyudi5243 10 месяцев назад

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

    • @hanieasemi
      @hanieasemi  10 месяцев назад

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

  • @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?

  • @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.

  • @hamidrezaamini9365
    @hamidrezaamini9365 2 года назад +1

    So much great 👏

  • @soufyensk5210
    @soufyensk5210 Год назад

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

  • @jesusleguiza77
    @jesusleguiza77 4 месяца назад

    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  4 месяца назад

      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 4 месяца назад

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

  • @rapiddev2611
    @rapiddev2611 Год назад

    good one

  • @aleksandarsavanovic4746
    @aleksandarsavanovic4746 Год назад

    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  9 месяцев назад

      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.

  • @quangminhpham1817
    @quangminhpham1817 2 года назад +1

    very useful 😊

  • @soufyensk5210
    @soufyensk5210 Год назад

    well explained 😉

  • @seyranselimov6694
    @seyranselimov6694 11 месяцев назад

    Could you create video about install supervisor to docker?

    • @hanieasemi
      @hanieasemi  11 месяцев назад

      Thanks for watching, Sure I'll consider it.

  • @MuhamadAzizPrasetyo
    @MuhamadAzizPrasetyo Год назад +1

    Thank u so much!!!!

  • @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.

  • @webdeveloper357
    @webdeveloper357 Год назад

    Great video!

  • @aysegulbulut40
    @aysegulbulut40 8 месяцев назад

    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  8 месяцев назад

      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

  • @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🤍

  • @GergelyCsermely
    @GergelyCsermely Год назад

    Thank You!

  • @nhanoan5461
    @nhanoan5461 Год назад

    this tutorial missing the create Dockerfile in folder php step

    • @hanieasemi
      @hanieasemi  9 месяцев назад

      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

  • @VietNambushes
    @VietNambushes 2 года назад

    i can not login to phpmyadmin

  • @김준엽-q3s
    @김준엽-q3s 2 года назад

    감사합니다😊

    • @hanieasemi
      @hanieasemi  Год назад

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

  • @viquanghoa
    @viquanghoa 2 года назад +1

    thank you

  • @jeannep8378
    @jeannep8378 10 месяцев назад

    does this still work today?

  • @CarlosEduardo-oo4tf
    @CarlosEduardo-oo4tf Год назад +1

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

  • @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 ?

  • @arifrizveezishan9054
    @arifrizveezishan9054 Год назад

    docker compose command not work in your project

  • @imranlashari6578
    @imranlashari6578 Год назад

    why ngnix?

  • @kiennguyencong5459
    @kiennguyencong5459 2 года назад +1

    good girl

  • @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 ?

  • @alleneben5715
    @alleneben5715 5 месяцев назад

    Why did you skip some steps.

    • @hanieasemi
      @hanieasemi  5 месяцев назад

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

    • @alleneben5715
      @alleneben5715 5 месяцев назад

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

  • @ebrahem-dev
    @ebrahem-dev 9 месяцев назад

    your video is incomplete!

    • @hanieasemi
      @hanieasemi  9 месяцев назад

      What can I do to complete the video?

  •  Год назад

    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.

  • @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.

  • @ariamustofa
    @ariamustofa 7 месяцев назад

    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