Connection in AirflowUI to an external postgres database

Hi all,
I’m using docker-compose up to launch airflow witch has a postgres 13 mentionned in the docker-compose.yaml. But when i created a connection in the airflowUI to an external postgres database (postgresql 14), it doen’t work :

could not connect to server: Connection refused Is the server running on host “localhost” (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Cannot assign requested address Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5432?