Это видео недоступно.
Сожалеем об этом.

Docker-Compose | Dockerizing pgAdmin and Postgres - Volumes and Custom Network IP

Поделиться
HTML-код
  • Опубликовано: 7 май 2021
  • Welcome to another Docker-Compose tutorial. The Windows platform does support PostgreSQL, but it can be much more convenient to install Postgres and manage PostgreSQL with pgAdmin in containers. In this tutorial we create a docker-compose file to configure Postgres and pgAdmin allowing any other application, in this tutorial Django to connect to it. We go the extra step of configuring the network, assigning static IP addressed to the containers.
    Code Repository: (Part 8)
    github.com/veryacademy/docker...
    🐱‍🏍Would you like to SUPPORT US FURTHER so that we can make even more great content - Please consider joining our members community.
    / @veryacademy
    👍SUBSCRIBE to get more free tutorials, courses and code snippets!
    / @veryacademy

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

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

    Thank you very much! You are one of the best Django teachers on the Internet! All tutorials have fantastic qualities! I just finished this Docker series, and it really helps me to dockerize my project and build understanding towards the workflow of using Docker. Thank you for your generous efforts!

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

    Awesome video. Thanks for sharing this series.

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

    Thank you very much for this very helpful video.

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

    simple quick and effective ty

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

    U have awesome teaching skills

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

    Great tutorial

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

    great tutorials!!

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

    So thanks you

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

    Hey, thanks for the awesome tutorial!
    Maybe someone finds this useful: if you have a running postgres application on your machine, trying to run migrations with django might result in a weird error saying that the "test_db" does not exist even though you might have the docker container running and are accessing the db through pgadmin on port 5050.

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

      Thanks for the tip!

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

      In addition to Echoes1265 comment, just go to task manager and end all postgresql tasks on your pc.

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

    How can I find the other videos in this series?

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

    What is the best way to configure environment variables for this case? Thanks for the video, this was exactly what I was looking for

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

      Hi Ramiro - first and foremost. This type of setup is for local development only - it is not recommended you use Docker for Postgres in production. Your question has a few answers, sorry if that was not applicable or if I don't answer your question.
      This should be of use:
      From: hub.docker.com/_/postgres
      Docker Secrets
      As an alternative to passing sensitive information via environment variables, _FILE may be appended to some of the previously listed environment variables, causing the initialization script to load the values for those variables from files present in the container. In particular, this can be used to load passwords from Docker secrets stored in /run/secrets/ files. For example:
      $ docker run --name some-postgres -e POSTGRES_PASSWORD_FILE=/run/secrets/postgres-passwd -d postgres
      Currently, this is only supported for POSTGRES_INITDB_ARGS, POSTGRES_PASSWORD, POSTGRES_USER, and POSTGRES_DB.

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

      @@veryacademy Thanks !!

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

    i'm getting this error with pgadmin "Failed to create the directory /var/lib/pgadmin/sessions:
    [Errno 13] Permission denied: '/var/lib/pgadmin/sessions'". Any clue how to slove it?

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

    👍

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

    I have incorrect username or password in the login page. Someone know this bug ?

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

    What happened to the bottom of yours screen? I cant see you type the commands

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

    Please make a video on how to learn new topic. Like read docs, build project after reading docs.