The official Docker image for the Constructive database.
Lean PostgreSQL 18 image with essential extensions for modern applications.
| Extension | Version | Description |
|---|---|---|
| pgvector | 0.8.2 | Vector similarity search for embeddings |
| PostGIS | 3.6.2 | Spatial and geographic data |
| pg_textsearch | 1.2.0 | BM25 full-text search |
| pg_cron | 1.6.7 | Job scheduler for periodic tasks |
| pg_partman | 5.4.3 | Partition management |
# Pull the image
docker pull constructiveio/postgres-plus:latest
# Run
docker run -d \
--name postgres \
-e POSTGRES_PASSWORD=secret \
-p 5432:5432 \
constructiveio/postgres-plus:latestEnable extensions as needed:
CREATE EXTENSION vector;
CREATE EXTENSION postgis;
CREATE EXTENSION pg_textsearch;
CREATE EXTENSION pg_cron;
CREATE EXTENSION pg_partman;make build # Build image
make test # Build and verify extensions
make run # Run container
make shell # psql into container
make clean # Remove imagedocker buildx build \
--platform linux/amd64,linux/arm64 \
-t constructiveio/postgres-plus:18 \
-t constructiveio/postgres-plus:latest \
--push .