How to use PostgreSQL with Docker & Python (also Web UI)

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

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

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

    unable to connect to the host name "database"..any help on this?

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

      Do you have the docker container running?

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

    Reason: image not found, Library not loaded: @rpath/libpq.5.dylib any help?

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

    thanks for the video. I did not understand how you had connected to the postgres container through python script. Can you explain me that?

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

    So good tutorial, but I have a timed out error when mi API is trying to connect with postgres, do you know what can i do to resolve it?

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

      Did you try resetting the Postgres Server? A common reason for getting timeouts is if you have a long running connection.

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

    It would be great if you could share the code as well!

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

      Unfortunately, I don't have the code for this anymore. However, if you look at some of the full app build videos I have, they use a very similar setup and the code for most of those are in the description.

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

    Great tutorial, thank you! Would it make sense to have the python app running in its own docker container? If so, what would the docker compose file for that look like?

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

      Yes it would. You can create another "service" in the docker-compose file. Make sure both the Python container and the Postgres container are in the same network so that they can talk to each other.

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

    thanks