Setup postgres and pg-admin in docker compose

Поделиться
HTML-код
  • Опубликовано: 22 ноя 2021
  • In this video I am going to show you how to Setup postgres and pg-admin in docker compose.
    docker cmd:
    gist.github.com/bradtraversy/...
    Code: github.com/Chensokheng/psql-d...
    discord:
    / discord
    Twiiter
    / sokhengchen

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

  • @leandroaraujo3364
    @leandroaraujo3364 Год назад +3

    It helped me a lot to configure the environment with Postgres without having to install on the machine, and run tests.
    Thank you!

  • @DesignDensity
    @DesignDensity Год назад +3

    @3:00
    I have had issues with mounting volumes like yours because it's not a folder-based volume and you will run into problems/loose data if you are not careful!
    The correct way that has worked for me everytime is;
    volumes:
    - ./data:/var/lib/postgresql/data

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

      I have tried this but it gives permission denied error (while pointing to the directory) when my backend tries to connect with the db. I have even tried chown with 999:999 and chmod 700 but still not solved so I ended up using named volumes instead

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

    Hey, Friend!
    This video helped me a lot!
    Thanks!

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

    thanks, your save my day bro

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

    @2:47, when setting up the data persistent capability, the host has a folder named "data".
    Does it mean that this "data" folder has to be created first before we run the docker-compose up command or docker desktop will create this "data" folder if one does not already exist?
    also
    @2:24, the place where the environment variables were defined, there is a hyphen "-" in front of every variables eg - POSTGRES_USER
    In some youtube videos, when they defined variables in the compose file, no hyphen was use. Is "-" optional?

  • @user-mf6nb8wg5h
    @user-mf6nb8wg5h Год назад +1

    Thank you dear friend! only you could help me)

  • @rayenselmen603
    @rayenselmen603 9 месяцев назад +1

    Amaizing

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

    very good video.
    which vscode theme are you using?

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

    Thank you

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

    Thank you for your video! Assume that I have a .tar folder on my local machine (inside Downloads), can I import that file into pgAdmin?

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

    very helpful thanks!

  • @cuongnguyen-we4xf
    @cuongnguyen-we4xf Год назад

    Thank you dear friend! And i have a question: how i connect postgres from dbeaver ?

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

    I have tried:
    as service directly
    from docker images
    using docker-compose
    but unable to connect pgadmin to the psql server.....

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

    im getting connection refused

  • @sumanosti7263
    @sumanosti7263 Год назад +2

    Hy bro, i wanted to change my password in docker compose and i changed but it is always taking previous password, please enlighten me

    • @DailyWebCoding
      @DailyWebCoding  Год назад +3

      It is due to the cache. After change password, you have to do >>>> docker-compose down -v

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

      @@DailyWebCoding thank you so much brother, much appreciation 😁😁🙏

  • @ricardo072
    @ricardo072 6 месяцев назад

    This is 2yrs old,.. .we need an update of this same video but adding and integrating Liquibase please