I have installed Postgres using Homebrew on macOS. I can start a Postgres server which listens to the default port 5432 using the command brew services start postgres, but I want it to use a different port.
Using my Homebrew Postgres installation, how can I start a Postgres server which listens to another port?