Create a local Laravel dev environment with Docker

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

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

  • @gordonrenfrew3632
    @gordonrenfrew3632 4 года назад +11

    Thanks for this, I've been jumping around articles/videos and have ended up being tied in knots trying to get this to work on my local comp. This was a solid run through for getting up and running without getting too bogged down and it was lucid in its approach - additionally most other tutorials seem to skirt over the server config which you went through here. I rarely comment on YT videos but when i do it's to tell you simply that you deserve to have an excellent day.

  • @resilientbit
    @resilientbit 4 года назад +9

    That's how a tutorial should be. To the point & not a single second wasted. Awesome! 👍

  • @EzekielOladejo-f1u
    @EzekielOladejo-f1u Год назад

    This is probably the only tutorial I have seen on dockerizing a Laravel application that is straight to the point and easy to understand. Thanks Andrew!!

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

      I'm glad you liked it, that means a lot to me! You're welcome!

  • @FunkyToe369
    @FunkyToe369 5 лет назад +22

    Could you explain the purpose of the SERVICE_TAGS and SERVICE_NAME? I don't see it listed in the mysql docker hub so I am not sure what it does.

  • @GKSchattenjaeger
    @GKSchattenjaeger 4 года назад +9

    Sir, your guide was clear and concise, it provides a perfect starting point for those who learn easier from an audio presentation (and not only).
    Thank you.

  • @KristherLouisVidal
    @KristherLouisVidal 5 лет назад +7

    The best video on docker hands down! Please make a followup tutorial on how we can connect sequel pro with mysql and custom domain mapping.

    • @aschmelyun
      @aschmelyun  5 лет назад +1

      You got it!

    • @aschmelyun
      @aschmelyun  4 года назад +2

      In case you haven't seen it, it's out now! ruclips.net/video/ozKxWsojYJ4/видео.html

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

    I know I'm commenting on an older video, but I just wanted to say thanks. This was very helpful. I thought I would stick my toes in the PHP waters just to check it out. I was struggling to find a good way to set up a dev environment without setting up a whole stack locally... not to mention, that it could then be the start point for a production branch (I found that video first). I watched dozens of videos that just referred to something like this or just glossed over the whole process. This video plus your deployment video completed the picture that I was missing in my mental model, with all the nuances of docker and compose to tie a bow on it.

  • @tannercampbell
    @tannercampbell 5 лет назад +14

    @Andrew Schmelyun Do you know of a way to install composer directly inside the docker environment, instead of relying on the local machine version of composer to build the new larval project instance?

    • @pauloafonsop.a1146
      @pauloafonsop.a1146 4 года назад

      I don't think this is a good thing... because I think you have to configure your environment in a distinct moment that you install / work with your versioned laravel project... you have to be able to download the laravel project at any moment of the project development, using for example a git clone ..., mainly when your project is already created and your environment is already configured and stable. So first of all you configure your docker-compose to build your enviroment, and then, in a paralel way, you create your laravel project. After that, whenever somebody joins in your team, that person clones your your laravel git repository and then build and up your docker environment. If you put the command to install a new laravel project using composer inside your docker, whenever you build your container you create a new laravel project, that I don't think this is a good idea. Your docker-compose is to you create and up your environment...

  • @deepeshdhakal7476
    @deepeshdhakal7476 3 года назад

    thank you this worked like magic. Not only learned how to make laravel work but also setting up webserver in general was a great learning experience.

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

    This is exactly what I was looking to know how to do. Thanks for the tutorial. Straight to the point

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

      Awesome, I'm glad it helped! If there's any improvements I could make to this video since it's a bit old now, feel free to let me know!

  • @winter-survivor
    @winter-survivor 3 года назад +3

    You rely on having a PHP installation on the host machine to get Composer packages instead of installing Composer on the desired container via Dockerfile. Is this the recommended practice? Thanks for the tutorial, very helpful.

  • @Mostaqmahmud
    @Mostaqmahmud 4 года назад +5

    Best one....best one...best one....!!!! I didn't get any clear understanding video like this. Thanks... Love you man... ❤

  • @emblemcc
    @emblemcc 4 года назад

    No matter how I tried I made so many typos :)
    but now I"m more familiar with the syntax .. thanks a lot

  • @bricxcarasco4921
    @bricxcarasco4921 4 года назад +1

    This is a great tutorial man, it's very clear and easy to understand. Keep it up sir, from the Philippines.

  • @dantharx
    @dantharx 3 года назад +2

    Excellent Video! Thank you for sharing your knowledge with us.
    Did I miss the part where the database was created (before the migration at the end)?

  • @FaizanAnwerAli
    @FaizanAnwerAli 4 года назад +1

    You can make couple of videos with docker-compose and Laravel.
    1. Memcached for caching.
    2. Redis connection for session.
    3. Media storage
    4. Local ssl
    5. Deployment on cloud. Including Heroku, AWS and Google Cloud.
    6. Php Ratchet socket connection app in docker.
    I have been looking for these for last 4 months.
    Just subscribed to keep my self updated on these videos if you upload them

  • @hassanawodi5888
    @hassanawodi5888 4 года назад +2

    One of the best tutorial on this! Well done. Straight forward and on point.

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

    Thank you so much for this. Even watching your clip it cost me whole day to do, can't imagine without this clip how much time i will cost T.T

  • @gayanhewa
    @gayanhewa 4 года назад +3

    Good stuff, I like the format you have used to explain each step as you go through them. I hadn't used docker-compose in a while and wanted a refresher to get it sorted for my local projects. This was more than enough to refresh my memory. +1

    • @aschmelyun
      @aschmelyun  4 года назад +1

      Thank you so much Gayan, comments like this are what keeps me going!

  • @GagandeepSingh-op8mb
    @GagandeepSingh-op8mb 4 года назад +2

    Still the biggest problem I face here is when we do composer install outside docker, we are still relying on local php version. Like I need php > 7.2 on the machine(not inside docker) to install laravel 7. Please correct me if I am wrong and let me know if there is any solution for this.

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

    Well done, and very much appreciated. I just started a php project for the first time in about 10 years, this got me up and running very fast.

  • @jahedhmahmud1448
    @jahedhmahmud1448 4 года назад +1

    amazing tutorial, good pace to keep up with and just the right amount of information on every thing that is done (allowing us to google for further information if needed). Excellent keep up the great work!

  • @hencoburger
    @hencoburger 4 года назад +2

    This was awesome! Helped me allot to get things up and running quickly.

  • @izclubcom
    @izclubcom 4 года назад +2

    i have an error: Exited (0) 8 seconds ago when using docker ps -a
    When i run project is: 502 Bad Gateway
    nginx/1.18.0
    Please help me

  • @igoralves1
    @igoralves1 3 года назад

    Very good. Just a note - I faced an issue during the first test. But when I cloned from the repository all was good.

  • @kazemmirzaei217
    @kazemmirzaei217 4 года назад +4

    Thank you so much, Awesome!!!
    Could you explain what should I do in production mode? and Isn't it better to go with Laradock?

  • @ibolt795
    @ibolt795 3 года назад +1

    Great video! "Additional property mysql is not allowed error "---- anyone else getting this?

  • @imazumder99
    @imazumder99 3 года назад

    Thank you so much for this video. Easy to understand. Short and to the point.

  • @rdhdFAN
    @rdhdFAN 3 года назад

    Trying to learn Laravel but all the configuration needed to run on Windows is absolutely nuts. Even with Docker. At this point I'm really questioning why I don't just stick with a simple LAMP stack.

  • @rogerpence
    @rogerpence 5 лет назад +4

    This is a very helpful video. But one thing is bugging me!
    You ran composer locally, correct? Why? I don't have, nor do I want, PHP and composer installed locally. Couldn't you use docker-compose exec into the PHP container to run compose create-project? (if the PHP container doesn't have composer installed, you could do that in your Dockerfile.)

    • @aschmelyun
      @aschmelyun  5 лет назад +1

      You're 100% correct! I just happen to have composer and PHP installed locally on my machine for installing packages + running create-project, but if you wanted you could offload that entire functionality to your docker containers.
      The best method would be to create a new container in your docker-compose file built off of the Composer image. This SO thread has a lot of great info in it: stackoverflow.com/questions/48127851/how-to-use-composer-with-docker-compose

    • @rogerpence
      @rogerpence 5 лет назад

      Andrew Schmelyun Thank you, Andrew. Ive been using Docker for a while now but you turned on several light bulbs for me.

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

    4:00 I wish you had explained "volumes:" a bit more. I don't understand what that is defining, and why you set those 2 directories.

  • @siliconmachine
    @siliconmachine 5 лет назад

    This is great! I hope you upload more content like this. Been fighting with it for a couple of hours and you made it super clear.
    I'd just suggest you add the link to the repository :)
    Thank you!

    • @aschmelyun
      @aschmelyun  5 лет назад

      Thank you so much, I'm glad you liked it! Not sure if you saw it in the other comments, but the repo is github.com/aschmelyun/docker-compose-laravel

  • @tannercampbell
    @tannercampbell 5 лет назад

    Great Video Andrew!! Been looking for a great video Laravel setup in Docker and this was it!

  • @AkeelAmeen
    @AkeelAmeen 3 года назад +1

    Great tutorial, Simply explained! Thank you for this

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

    This is what I am looking for, Great work Man👏

  • @muhammadisfanfajar
    @muhammadisfanfajar 4 года назад +1

    could you please make more tutorial about setup docker for multiple project?
    btw I have followed this video and its really great tho, it works thanks!!!

  • @maurotrotta1370
    @maurotrotta1370 3 года назад

    Thanks Andrew! It was exactly what I was looking for!

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

    Brilliant presentation ......................... Thanks Andrew

  • @rezarabbani5335
    @rezarabbani5335 3 года назад

    set playback speed on 0.9 and enjoy this perfect tutorial

  • @willyboy1985
    @willyboy1985 4 года назад +3

    For those having issues with the storage/logs/laravel.log permission, add those 3 lines to the Dockerfile
    RUN echo dl-2.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories
    RUN apk --no-cache add shadow && usermod -u 1000 www-data && groupmod -g 1000 www-data
    RUN chown -R www-data:www-data /var/www/html
    - 1st line downloads a package to allow alpine to use the command `usermod`
    - 2nd line uses usermod command to add user www-data and group www-data to the user ID 1000 and group ID 1000
    - 3rd line changes the owner and group of the project folder to www-data

    • @dotancohen
      @dotancohen 4 года назад +1

      I'm a bit torn about this solution. The problem is that the UID and GID of files inside the volume must be the same values as the UID and GID outside the volume, on the host. This solution forces the www-data UID and GID to match a common UID and GID. It will work for most users, but it's a workaround with faults that will be difficult to work around later. If I come up with a way to set the UID and GID in the volume independent of their values on the host, I'll post back.

    • @willyboy1985
      @willyboy1985 4 года назад

      @@dotancohen Many large docker projects such as Laradock have 1000 hardcoded in their dokcerfiles for uid and gid. I am not saying that they are necessarily right to do so, but it does seem like having 1000 as your ID on your own machine is "almost-certainly-always" the case.
      If you are that concerned about ID disparities, you can set some `args` in your docker-compose such as UID: 1000 GID: 1000, and pass them dynamically in the Dockerfile.

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

    Thankyou man...this video is exactly what I was looking for

  • @arun5741
    @arun5741 3 года назад

    JUST GOT AMAZED WITH THE SPEED OF yOU ARE DOING .. CAN YOU PLEASE BE MY MENTOR?

  • @81gamer81
    @81gamer81 4 года назад +1

    Been annoyed with wamp for so long. MS nailed it with blocking my hosts file evry so often these days. Hopefully this will work

  • @АлінаСавчук-т4л
    @АлінаСавчук-т4л 4 года назад +1

    ERROR: for mysql Cannot create container for service mysql: invalid volume specification

  • @rantayar
    @rantayar 4 года назад +9

    i get error "502 Bad Gateway
    "

  • @CalicoArchives
    @CalicoArchives 3 года назад

    Thanks for making this video. Very well explained and easy to follow. Subscribed.

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

    every command worked😄it was very helpful. but I do not understand two things, how is composer working in php container? we do not have composer installed in there. and after that , how we do not need rebuild for docker-compose after changes?

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

    Thanks. This is a great tutorial, simple and to the point.

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

    Thank you Andrew, I love you (figuratively)!!

  • @АлекандрМарченко-д6г

    Hello. Can you show how to build the environment for Laravel-nodejs-pusher-echo-websocket project?

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

    I cannot get this to work. I was using an existing laravel project. Placing it inside a src directory with the docker files as siblings is building and spinning the containers up but my browser refuses to connect

  • @KevinAround
    @KevinAround 4 года назад

    This is really cool -- I'm trying to setup Laravel on my Synology NAS (to host my laravel applications on my boat). Still pulling out my hair a bit, but progress :) Thanks for you!!

    • @aschmelyun
      @aschmelyun  4 года назад

      On your BOAT?! That's awesome, haha! If you get stuck again and need any help, feel free to message me.

  • @fleetfoot9034
    @fleetfoot9034 4 года назад +2

    Has anybody else run into this error when trying localhost:8088?
    UnexpectedValueException
    The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied

    • @fleetfoot9034
      @fleetfoot9034 4 года назад

      Changing permissions to 777 fixed this issue, but that's obviously not ideal.

    • @fleetfoot9034
      @fleetfoot9034 4 года назад +1

      Figured it out. I'm running Fedora, and it seems php-fpm was using www-data (gid 82) by default. So I chowned the src folder my_username:82 with permissions 775 in the right places and it worked.

  • @dorsetdroneguy5804
    @dorsetdroneguy5804 4 года назад +1

    Exactly what I was looking for. Thanks

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

    I'm getting this error when I try to run mysql artisan migrate: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known (SQL: select * from information_schema.tables where table_schema = homestead and table_name = migrations and table_type = 'BASE TABLE')

  • @Segero19
    @Segero19 4 года назад

    Thank you for amazing tutorial, everything worked. However, i would like to understand more about what was written in "default.conf" file and where should i look for information about all that syntax and what each line means.

  • @MelissaKippPlusHomeschool
    @MelissaKippPlusHomeschool 4 года назад +1

    I followed the instruction and got to 11:45 in the video composer 'create-project laravel/laravel . '
    I got an error back and I can't seem to find a solution.
    "Project directory ./ is not empty."
    Does anyone know how to get this resolved?

    • @aschmelyun
      @aschmelyun  4 года назад +2

      Hi Melissa! Check that directory, by default there's a README.md file in it, you'll need to remove that before continuing. Sorry that wasn't explicit in the video!

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

    very good tutorial. Things not going smoothly with nginx but I think it is a permission problem or something small.

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

    This is great, out of the box. Really helped me a lot. You're a life saver..

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

      I'm glad it helped, thanks for the compliment!

  • @vladvald864
    @vladvald864 4 года назад +1

    Hey, nice video, but I have a question: why does it take so much time to make a simple request/response (im not good at this stuff, but when im using xampp, time is incomparably small, so im not sure how to use docker for development).

  • @hectorluis9294
    @hectorluis9294 3 года назад +4

    Dude the explanation was excelent, but can you tellme wich keyboard are you using? the sound of the typing was a true SRM

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

      Lol... Yes. You should do some affiliate marketing!

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

    Hi @andrew I've followed exactly same thing.
    But when I try to create the laravel project with composer command, it throwing me error: zsh: command not found: composer

  • @clydeortega3766
    @clydeortega3766 3 года назад

    during running docker-compose exec php php /var/www/html/artisan migrate. it says, "Could not open input file: C:/Program Files/Git/var/www/html/artisan", i can't find any resources to solve this problem,

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

    Thanks Man, very good explanation.

  • @veoquenoesunproblema
    @veoquenoesunproblema 3 года назад

    It looks like the Nginx does not work properly when I execute the complete compose file, it suddenly stops.

  • @leoliu8546
    @leoliu8546 4 года назад

    One of the best Docker Tut

  • @harryyanto480
    @harryyanto480 3 года назад

    what a great tutorial.. Thank you for making this.. this tutorial helps me so much!!
    i have a question though.
    Why are you making another container that contains PHP? why not installing PHP on the nginx container?
    and what are the effect of separating PHP and the nginx? is there any benefits?
    i'm really new in this.. followed your tutorial, success. understand the basic concept but still unable grasp the architecture of your docker-compose like why are you seperating PHP and nginx container..
    thank you again for this tutorial..
    Stay safe, Keep healthy..

  • @deadinside8380
    @deadinside8380 3 месяца назад

    Im having some issues with macos catalina... locally i have php 7.2 and i cant change it bc pc blongs to my company... but i have other projects to work with... tried to install docker like u said but having some issues doin it.

  • @muhammadnasser2735
    @muhammadnasser2735 3 года назад

    The Compose file './docker-compose.yml' is invalid because:
    Unsupported config option for services.mysql: 'try

  • @parisanaderi1647
    @parisanaderi1647 3 года назад

    Thank you so much. I tested this. after running docker-compose up -d, php and mysql and nginx are done but localhost:8088 is not running and return "Unable to connect". What is the problem?

  • @nestormatias217
    @nestormatias217 4 года назад

    Invalid top-level property "mysql". Valid top-level sections for this Compose file are: version, services, networks, volumes, and extensions starting with "x-". help me i got this error thanks for the video.

  • @aimfreakify
    @aimfreakify 4 года назад

    Just curious at this point...
    I was creating my laravel app inside the 'src' directory, but kept getting the following error:
    composer create-project laravel/laravel .
    Creating a "laravel/laravel" project at "./"
    Installing laravel/laravel (v8.4.2)
    - Installing laravel/laravel (v8.4.2): Extracting archive
    No such zip file: 'C:\Users\Sungho\dev\docker-practice\src/vendor/composer/tmp-1105d76acb6dfe5ee95dff2b5085bc5e'
    Unzip with ZipArchive class failed, falling back to unzip command
    Install of laravel/laravel failed
    [RuntimeException]
    Could not delete C:/Users/Sungho/dev/docker-practice/src/.:
    This can be due to an antivirus or the Windows Search Indexer locking the file while they are analyzed
    I was able to solve the issue by doing composer create-project laravel/laravel .
    /src while in the root directory. If anyone has any ideas why it was erroring out, it'd be much appreciated. I'm at least 90% sure this is just user error on my part. At this point, just very curious on wth was happening.

  • @binodmanandhar5318
    @binodmanandhar5318 3 года назад

    Hi Andrew, I am a new to docker. Just a beginner.
    When I run docker-compose build && docker-compose up -d command,
    I get this error
    ERROR: In file './docker-compose.yml', volume must be a mapping, not an array.
    I could not figure out the issue.

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

    This way you'll still have to install "composer" onto the host machine, in order to create project in the src directory right? is there any dockerized way around that?

  • @olexiymelnychuk7274
    @olexiymelnychuk7274 5 лет назад

    You greatly awesome! I watched a lot of trash tutorials, and nothing helped me. But your tutorial is the best!

  • @fruzsinakovacs6262
    @fruzsinakovacs6262 4 года назад

    Very useful video, thanks for making it. It should definitely have more likes.

  • @JohnSmith-zl8rz
    @JohnSmith-zl8rz 4 года назад

    The problem is you infest your local computer with php, nginx (where's all that stored???)
    I use homestead with virtual box, everything goes to a separate vm.

  • @joshua0x
    @joshua0x 3 года назад

    Such a great video. You just gained a subscriber

  • @veoquenoesunproblema
    @veoquenoesunproblema 3 года назад

    I did exactly everything but it didn't work the localhost:8088

  • @arshchoudhary5198
    @arshchoudhary5198 4 года назад

    Well done Andrew, I have a query how can we setup multiple laravel environment with docker?

  • @richmundlofranco6987
    @richmundlofranco6987 4 года назад +4

    returns Welcome to nginx for me. am i missing something?

    • @drgrajeda
      @drgrajeda 3 года назад

      @Andrew Schmelyun I also get the default Nginx welcome page. Can you help? Thanks!

  • @vladvasilov
    @vladvasilov 4 года назад

    Great tutorial! But unfortunately this type of configuration will run really slow...have any thoughts about this? Thanks

  • @mosabawad1634
    @mosabawad1634 4 года назад

    i did the same steps and it's not working when go to localhost:8088, the (it's working) html is not appearing and my localhost can't see the server, note: no error

  • @rianasmaraputra
    @rianasmaraputra 4 года назад +1

    When i create laravel project on src folder, and access the url, i always got 404 Not Found. How can i fix this ?
    Thanks

    • @fraj1234
      @fraj1234 4 года назад +1

      Define working_dir: /var/www/html in nginx and php services

  • @edward0591
    @edward0591 4 года назад

    so we can essentially run test's on different versions and also Automated test Scripts on different containers to check if our web App works or not? It's Awesome can you create a tutorial for docker with laravel -vue - mongodb.

  • @CaimAstraea
    @CaimAstraea 3 года назад +1

    I was having some issues with the php alpine image trying to build some other extension like GD support

    • @tzalejo82
      @tzalejo82 3 года назад

      could you solve it?

  • @nror1311
    @nror1311 4 года назад

    I wanted to use docker as a nice development tool for Windows and laravel is now using the same thing as laradock but the command line is using the xshell connection for execution and I wanted to find a better solution

  • @jacobward8851
    @jacobward8851 4 года назад +1

    So I did everything as shown and everything seemed to have worked but what I do notice is the docker container nginx doesn't stay up it always shows that it was exited when I run docker ps -a any idea why that would be?

    • @aschmelyun
      @aschmelyun  4 года назад

      What's the output if you just run "docker-compose up nginx" without the -d flag or anything else?

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

    Thank you for this. clear as glass

  • @jodelmiranda3098
    @jodelmiranda3098 3 года назад

    Can you make tutorial to share this laravel application with docker image?

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 4 года назад

    Hi Sir, my nginx container is not running but mysql and php containers does successfully...where i am possibly wrong? thanks

  • @biltong1683
    @biltong1683 4 года назад +1

    This was a great video, thank you! I am new to both Laravel and Docker and I was looking for a simple way to setup my environment without using homestead. I was going to use Laradock but it got way too messy. This was so much cleaner and easier to use. I did run into one issue though, when trying to set up authentication it did not load the pages correctly, I assume this is because it uses VueJS. How do I get the packages installed in the container to get this to work correctly?

    • @aschmelyun
      @aschmelyun  4 года назад

      Are you using vue-router in History mode?

  • @miguelstevens3042
    @miguelstevens3042 5 лет назад +1

    Thanks for this video, for me the last step, adding a custom laravel route isn't working. Any idea what could be the cause of this?

    • @Scratch924
      @Scratch924 3 года назад

      If anyone looking for a solution. Add the following code inside nginx/default.conf inside server before location ~ \.php$ code:
      location / {
      try_files $uri $uri/ /index.php$is_args$args;
      }

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

    You made my day, many thanks

  • @miraclemaddymm3694
    @miraclemaddymm3694 4 года назад

    hello there i am facing an issue which is the site cannot be reached...my nginx is running but other things not showing

  • @senseicodes
    @senseicodes 3 года назад

    I'm getting unable to connect when I go to localhost:8088, I don't have a local server started on my ubuntu vm, could that be the reason. Also everything run fine and all images build successfully. Any help?

  • @Thomas-ft6qs
    @Thomas-ft6qs 2 года назад

    Hi, I am wondering how to make docker do the migrations automatically when doing docker-compose up. Have you got an idea?

  • @XORknight
    @XORknight 4 года назад +1

    how could we use a domain name such as example.local in stead of localhost:8088? I tried a couple of things but I feel like I am missing a step.

    • @aschmelyun
      @aschmelyun  4 года назад

      Step 1: In your docker-compose.yml file change the ports for the nginx service to 80:80.
      Step 2: Add the following line to your hosts file and save it: 127.0.0.1 example.local
      If you're on Windows the hosts file will be at c:\Windows\System32\Drivers\etc\hosts on a MacOS or Linux system it should be at /etc/hosts

    • @XORknight
      @XORknight 4 года назад

      @@aschmelyun it works :) . Thank you

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

    Dont know what the issue always showing nginx welcome page... Can you help me in that sir?