Sign inSign up

juroapp/pgvector

By juroapp

•Updated 2 months ago

PostgreSQL image with pgvector, pg_textsearch, and rum extensions.

Image
Databases & storage
0

50K+

juroapp/pgvector repository overview

⁠pgvector

PostgreSQL with pgvector⁠, pg_textsearch⁠, and RUM⁠ extensions, plus support for creating multiple databases on startup.

Based on the official pgvector/pgvector⁠ image.

⁠What's included

  • pgvector — open-source vector similarity search for PostgreSQL
  • pg_textsearch — full-text search improvements by Timescale
  • RUM — inverted index access method with positional information in posting lists
  • Multi-database init script — create extra databases at startup, each with extensions pre-installed

⁠Quick start

docker run -e POSTGRES_USER=app -e POSTGRES_PASSWORD=secret \
  juroapp/pgvector:latest

⁠Multiple databases

Set POSTGRES_EXTRA_DBS to a space-separated list of database names. Each database is created with the same owner (POSTGRES_USER) and has vector, pg_trgm, pg_textsearch, and rum extensions enabled automatically.

docker run -e POSTGRES_USER=app -e POSTGRES_PASSWORD=secret \
  -e POSTGRES_EXTRA_DBS="db_one db_two" \
  juroapp/pgvector:latest

This creates:

  • The primary database (from POSTGRES_DB or defaults to POSTGRES_USER)
  • db_one and db_two

All databases have the vector, pg_trgm, pg_textsearch, and rum extensions enabled.

⁠Environment variables

All standard PostgreSQL Docker image⁠ environment variables are supported, plus:

VariableDescriptionDefault
POSTGRES_EXTRA_DBSSpace-separated list of additional databases to create(none)

⁠Docker Compose example

services:
  db:
    image: juroapp/pgvector:latest
    environment:
      POSTGRES_USER: app
      POSTGRES_PASSWORD: secret
      POSTGRES_EXTRA_DBS: "db_one db_two"
    ports:
      - "5432:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data

volumes:
  pgdata:

⁠Build arguments

ArgumentDescriptionDefault
BASE_VERSIONPostgreSQL base image version18
JURO_VERSIONJuro image revision tag7
PG_TEXTSEARCH_REFpg_textsearch release tag to installv1.3.1
RUM_REFRUM release tag to build and install1.3.15

⁠License

See the respective licenses of pgvector⁠, pg_textsearch⁠, and RUM⁠.

Tag summary

Content type

Image

Digest

sha256:1b3ddd6e5…

Size

158.7 MB

Last updated

2 months ago

docker pull juroapp/pgvector