-
If PostgreSQL is already installed on your machine, port 5432 is likely occupied. In that case, choose an alternative port, such as 5433.
-
In your
docker-compose.ymlfile, map the port like this:ports: "your_custom_port:5432".
-
The default
host_db_portindocker-compose.ymlis set to5432, unless you're running Metabase outside Docker. Since DBeaver will connect to the PostgreSQL instance inside the Docker container, make sure to connect using the custom port you defined earlier. -
Because the database is hosted locally within Docker, use
host.docker.internalas the hostname when connecting.