docker run -d --name pgvector-db -e POSTGRES_PASSWORD=postgres -p 5433:5432 pgvector/pgvector:pg17-trixie
 
docker exec -it pgvector-db bash

apt update

apt install postgis postgresql-17-postgis-3

systemctl restart postgresql
 
psql -U postgres -d postgres
 
CREATE EXTENSION vector;

CREATE EXTENSION postgis;

CREATE EXTENSION postgis_topology;

SELECT PostGIS_Version();

password : postgres