Enterprise-grade Vector Database Solutions by SyneHQ
This Dockerfile creates a production-ready PostgreSQL database with pgvector extension enabled for vector similarity search capabilities. It also includes pg_stat_statements extension for query performance monitoring, developed and maintained by SyneHQ.
๐ข Looking for a standard PostgreSQL image? Check out our
synehq/pgimage for non-vector database requirements! Same enterprise-grade quality without the vector extensions. Perfect for traditional database workloads! ๐
- ๐ข Enterprise-ready vector database solution
- ๐ Based on official pgvector/pgvector:pg17 image
- ๐ Includes pg_stat_statements extension for query performance monitoring
- ๐ Configured with vector similarity search support
- ๐ Increased max connections (200)
- ๐งโโ๏ธ Automatic initialization with vector extensions and sample table
- ๐ฎ Pre-configured similarity search function
- ๐ Production-grade performance optimizations
docker run -d --name postgres-pgvector \
-e POSTGRES_PASSWORD=your_password \
-p 5432:5432 \
-v $(pwd)/certificates:/etc/postgresql/ssl \
ghcr.io/synehq/pg-vectordocker run -d --name postgres-pg \
-e POSTGRES_PASSWORD=your_password \
-p 5432:5432 \
-v $(pwd)/certificates:/etc/postgresql/ssl \
ghcr.io/synehq/pgdocker build -t synehq/pg-vector vector/docker build -t synehq/pg .Need some certificates but don't want the hassle? We've got you covered! ๐ก๏ธ
This approach provides secure ways to pass SSL certificates to your PostgreSQL container, ensuring proper encryption for your database connections while maintaining security best practices.
docker run -d --name postgres-pgvector \
-e POSTGRES_PASSWORD=your_password \
-p 5432:5432 \
-v $(pwd)/certificates:/etc/postgresql/ssl \
ghcr.io/synehq/pg-vectordocker run -d --name postgres-pg \
-e POSTGRES_PASSWORD=your_password \
-v $(pwd)/certificates:/etc/postgresql/ssl \
-p 5432:5432 \
ghcr.io/synehq/pgdocker exec -it postgres-pgvector psql -U postgresThe container automatically:
- ๐ Enables the vector and pg_stat_statements extensions
- ๐ Creates a sample 'items' table with vector embedding support
- ๐ Sets up an IVFFlat index for efficient similarity search
- ๐งช Creates a helper function for vector similarity matching
-- Insert a sample item (it's that easy! ๐)
INSERT INTO items (description, embedding)
VALUES ('Sample item', '[0.1, 0.2, ..., 0.5]'::vector);
-- Find similar items (like magic! ๐ช)
SELECT * FROM match_items(
'[0.1, 0.2, ..., 0.5]'::vector, -- query embedding
0.8, -- similarity threshold
5 -- number of results
);id: Serial primary keydescription: Text description (tell us your stories! ๐)embedding: Vector(1536) for storing embeddings (where the magic happens! โจ)created_at: Timestamp of creation (we like to keep track of time! โฐ)
Finds similar items based on vector similarity (like finding your database soulmates! ๐):
query_embedding: Vector to match againstmatch_threshold: Minimum similarity score (0-1)match_count: Maximum number of results to return
| Image | Use Case | Features |
|---|---|---|
synehq/postgres-pgvector |
AI & Vector Search | PostgreSQL + pgvector for similarity search, embeddings storage, and AI applications |
synehq/pg |
Standard Database | Enterprise-grade PostgreSQL without vector extensions, optimized for traditional workloads |
Choose the right tool for your job! Both images include our enterprise-grade optimizations and support. ๐ ๏ธ
- Documentation ๐
- API Reference ๐
- Community Forum ๐ฅ
- Enterprise Support ๐ข
synehq provides enterprise-grade database solutions for modern AI applications. Our technology powers thousands of production deployments worldwide, helping businesses leverage the power of vector similarity search at scale. We're like database superheros, but without the capes! ๐ฆธโโ๏ธ๐ฆธโโ๏ธ
This project is licensed under the MIT License - see synehq.com/license for details. No fine print, we promise! ๐
Built with โค๏ธ by synehq
Website โข Documentation โข Blog โข Contact
Made with ๐, ๐ฆ, and a little bit of database magic! โจ