brew install postgresql postgis
psql -d {db} -c "CREATE EXTENSION postgis;"
psql -d {db} -c "CREATE EXTENSION postgis_topology;"
If this fails, check postgis extensions are available with
SELECT * FROM pg_available_extensions;
SELECT PostGIS_full_version();