2025-12-24 22:19:43 +01:00
|
|
|
# =============================================================================
|
2025-12-25 07:40:39 +01:00
|
|
|
# PostgreSQL with pgvector (Custom Build Example)
|
2025-12-24 22:19:43 +01:00
|
|
|
# =============================================================================
|
2025-12-25 07:40:39 +01:00
|
|
|
# Example: Build pgvector from source on standard postgres image
|
|
|
|
|
# Currently unused - docker-compose.yml uses pgvector/pgvector:pg16 directly
|
2025-12-24 22:19:43 +01:00
|
|
|
# =============================================================================
|
|
|
|
|
|
2025-12-25 07:40:39 +01:00
|
|
|
FROM pgvector/pgvector:pg17
|
2025-12-24 22:19:43 +01:00
|
|
|
|
|
|
|
|
# Add init script to create extension on startup
|
|
|
|
|
COPY docker/postgres-init/01-create-extensions.sql /docker-entrypoint-initdb.d/
|
|
|
|
|
|
2025-12-25 07:40:39 +01:00
|
|
|
LABEL org.opencontainers.image.title="PostgreSQL with pgvector"
|
|
|
|
|
LABEL org.opencontainers.image.description="PostgreSQL 17 with pgvector extension for vector similarity search"
|