A simple docker config for postgres with pgvector extension. The extension documentation can be found at the pgvector repo including instructions to verify the vector field is working.
- cd postgres_pg_vector_container
- docker compose up
The connection details and database name can be set within the docker-compose.yml files, the defaults are set to the following.
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=vectorexample