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

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

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

  • @hughqing2628
    @hughqing2628 3 года назад +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!

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

    simple quick and effective ty

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

    Thank you very much for this very helpful video.

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

    U have awesome teaching skills

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

    Awesome video. Thanks for sharing this series.

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

    Great tutorial

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

    great tutorials!!

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

    So thanks you

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

    How can I find the other videos in this series?

  • @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 3 года назад

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

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

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

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

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

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

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

  • @jaja7902-r7p
    @jaja7902-r7p Год назад

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

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

    👍