Docker With Django And Postgresql Tutorial

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

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

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

    I was having trouble getting my application to work but this video fixed that. I was working on it for over an hour this morning before finding your video. Thank you!

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

      Nice, that is great :-D Glad it could help you :-D

  • @bushramustofa2135
    @bushramustofa2135 3 года назад +3

    Clean, Clear, and easily understandable tutorial great job Stein

  • @barrowmusics
    @barrowmusics 2 года назад +2

    Your teaching is great

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

    I am finally relieved. Thanks very much bro.

  • @1roOt
    @1roOt 3 года назад

    the best best best best best django channel! this is so premium. thank you!

  • @TanjimAshraf-nr2hh
    @TanjimAshraf-nr2hh Год назад +1

    Docker-compose was making me crazy until this video. Thanks. Liked & Subscribed also.

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

    Another great tutorial setting up a simple Docker container using Docker Compose and also able to run a Django application with Postgresql as the backend.👍

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

    Great video! and congrats on 7k🎉

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

    Thank you for the video, very clear

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

      You’re welcome, glad you liked it 😁

  • @megz_2387
    @megz_2387 8 месяцев назад +1

    thanks for the video!

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

    superb tutorial, as always. Don't you dare to change your style of showing things to us!!!!

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

    It’s finally here!

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

    Thank you very much for this video!

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

    Thank you so much

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

    Finally, got the tutorial.
    Thank you so much.

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

    You help me so much
    Thank you!!!!!
    I read ofical docs - i hate it
    i saw your video - i like it! =)
    Have a nice day !

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

      Nice, thank you so much for the feedback 😁

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

    Thank you for the video.
    But can you please show project directory? how code, db etc folders placed in relation one to another.

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

      Hey, I will add it to my list if ideas 👍🏻

  • @aditya.01020
    @aditya.01020 3 года назад

    That what I was looking for, I am noob in Docker.
    Thank You Mr. Stein 😋

  • @jorgeav527-xyz
    @jorgeav527-xyz 3 года назад +1

    best ever, make one deploying a docker postgresql django to azure AWS and linode pls

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

      Hi :-) I'm going to make one more video where I deploy this to Digital Ocean with a Ubuntu 20.04 server. This can also be used for Linode as well (And other Ubuntu server providers).
      I don't have any experience with Azure or Aws, so I don't think I'm able to do that :/

  • @SethBasham-i6v
    @SethBasham-i6v Год назад +1

    Is this just for new Django Projects, or will it be the same process for existing django projects?

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

      This can be done for existing projects as well yes :-)

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

    Thanks a lot for this tutorial Stein! I'm back to your channel! :)

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

    👏 amazing! I love u 💓

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

    hello stein. in your deployment i could not see any docker implementationin digitalocean . any reason for that?

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

      Hmm, not sure why. I'm working on a new video now though, i will use docker locally and on digital ocean there :-)

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

    Amazing video, only question is what changes you have to make for production?

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

      Hey, there is a few small tweaks for security I think. I never use Docker in production :P I always just stick to simple virtual environments :-)

  • @MNibor
    @MNibor 11 месяцев назад +1

    I'm on a Linux PC and after doing [docker compose run web...] I run into a "data/db" folder permissions error. Do you have any idea how I can solve it?

    • @CodeWithStein
      @CodeWithStein  10 месяцев назад +1

      Hey, Hmm not sure… maybe use the chown command?

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

    thanks a lot!

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

    Great

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

    This is awesome!! Thank you for this awesome tutorial

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

    How can one run such a command [pip install django-filter] using docker-compose

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

      Hi, you can add it to the requirements.txt file. I think that should handle it ☺️

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

    Can some one explain what is ./data/db
    Because I assume that there is no such file in the current directory and we are actually mapping that directory inside the container to postgres folder

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

    can you share with us how we can deploy our django project deploy on docker?

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

      Hi! I'm going to make one more video with Docker where I make it a little bit more advanced. This will include gunicorn, nginx and similar, and also how to deploy it to a live server ;-)

    • @TanjimAshraf-nr2hh
      @TanjimAshraf-nr2hh Год назад +1

      @@CodeWithStein Can you please share that video's link in this thread or in the video's description section, so we can find it easily?

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

      I haven’t made it yet 😛😛🤷🏼‍♂️

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

    I'm really stuck in this postgres connection for an existing application

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

      I think you can do what I did in the video, and then just run a command for importing the existing application. Or you can just change the contents of settings.py to point to your existing postgres.

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

    Can you make video on multiple django website hosting on same Ec2 server🤔

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

      Hi! I don't have any experience with Ec2, so I can't :/

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

      @@CodeWithStein No problem was giving an idea of content haha, bcz there's less videos of deployment

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

    Hey Stein, thank you for this great introduction!
    My question is about development and production, do you usually use the same compose files for both?

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

      Hi, thank you :-D
      Yes, you usually use the same files, but they will be more complicated. So they can handle environments and similar ;-)

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

    ERROR: yaml.scanner.ScannerError: mapping values are not allowed here :(

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

      Hmm, not sure where this is coming from :S Maybe a Windows error?

  • @АлександрБоков-щ9б

    good

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

    First🧨

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

    WAIT.... YOU'RE USING VI!!!!!

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

      Haha, sometimes yes 😁😁

    • @TanjimAshraf-nr2hh
      @TanjimAshraf-nr2hh Год назад +1

      @@CodeWithStein I didn't understand how did you open two tabs in vi to work like editors or switching between files inside of a directory? It seems magical to me.

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

      Do you use Windows or Mac?

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

    python manage.py runserver is only for dev and not for production :(

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

      Yes ;-) I'm going to make a more advanced video with Docker where I include deployment, nginx, gunicorn and similar as well ;-)

  • @SaadHussain-op8ps
    @SaadHussain-op8ps 3 месяца назад +1

    who is coming here after CS50W

    • @CodeWithStein
      @CodeWithStein  2 месяца назад

      Certainly not me at least :-D :P