Skip to content

Django can't translate "postgres" name for postrgres database #5

@rllola

Description

@rllola

I usually use the name of my docker-compose service inside my django application to connect to the database (postgres) but when I use the reverse proxy on the Django service it says it can't translate 'postgres' to a hostname :

could not translate host name "postgres" to address: Name or service not known

Usually docker-compose is able to do it.
Do you have any idea why it doesn't work when using the reverse-proxy and how I could fix it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions