This project provides a Docker image that combines Bitnami's PostgreSQL with the pgvector extension for vector similarity search capabilities.
For specific architectures:
# For linux/amd64
docker pull ghcr.io/4xxi/bitnami-pgvector:latest@sha256:1065402f43c9384a0b34a64d6cab0839f9b332b5cb4d75c97161fb12ad25fc92
# For linux/arm64
docker pull ghcr.io/4xxi/bitnami-pgvector:latest@sha256:4df7853e68c428460c1b529f41e9b5b7dbc7052925c8077980c92c27343dd84fFor multi-arch support (automatically selects the right architecture):
docker pull ghcr.io/4xxi/bitnami-pgvector:latestAvailable tags:
latest- Latest buildpg17- Latest PostgreSQL 17 buildpg17-233f3-67470- Specific version combination
- Based on the official Bitnami PostgreSQL image
- Includes pgvector extension for vector similarity search
- Multi-architecture support (amd64 and arm64)
- Automated builds via GitHub Actions
- Version tracking based on both PostgreSQL and pgvector versions
- Docker with BuildKit and multi-architecture support enabled
- GitHub CLI (optional, for authentication)
- curl and wget (for fetching version information)
docker pull ghcr.io/${YOUR_GITHUB_USERNAME}/bitnami-pgvector:latest
# or use a specific version
docker pull ghcr.io/${YOUR_GITHUB_USERNAME}/bitnami-pgvector:pg17-xxxxx-xxxxxdocker run -d \
--name postgres-vector \
-e POSTGRESQL_PASSWORD=your_password \
-p 5432:5432 \
ghcr.io/${YOUR_GITHUB_USERNAME}/bitnami-pgvector:latestAfter connecting to your database:
CREATE EXTENSION vector;The image is automatically built:
- Every day at 20:00 UTC
- On every push to the main branch
- Manually through GitHub Actions interface
To trigger a manual build:
- Go to the "Actions" tab in your GitHub repository
- Select the "Build Postgres" workflow
- Click "Run workflow"
- (Optional) Change the PostgreSQL version
- Click "Run workflow"
- Clone the repository:
git clone https://github.com/${YOUR_GITHUB_USERNAME}/bitnami-pgvector.git
cd bitnami-pgvector- Build the image:
PG_MAJOR_VERSION=17 ./build.shThe script will:
- Check for existing images in the registry
- Download the latest compatible versions of PostgreSQL and pgvector
- Build multi-architecture images (amd64 and arm64)
- Push the images to GitHub Container Registry (if authenticated)
PG_MAJOR_VERSION: PostgreSQL major version (required for building)GITHUB_TOKEN: GitHub token for authentication (optional, required for registry checks)REPO_NAME: Override the default repository name (optional)
The images are tagged using the following format:
latest: Latest successful buildpg{VERSION}: Latest build for a specific PostgreSQL major versionpg{VERSION}-{BITNAMI_HASH}-{PGVECTOR_HASH}: Specific version combination
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.