Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.33 KB

File metadata and controls

57 lines (44 loc) · 1.33 KB

Constructive Docker

constructive

Lean PostgreSQL 18 image with essential extensions for modern applications.

Extensions

Extension Description
pgvector Vector similarity search for embeddings
PostGIS Spatial and geographic data
pg_textsearch BM25 full-text search

Usage

# Pull the image
docker pull ghcr.io/constructive-io/docker:latest

# Run
docker run -d \
  --name postgres \
  -e POSTGRES_PASSWORD=secret \
  -p 5432:5432 \
  ghcr.io/constructive-io/docker:latest

Enable extensions as needed:

CREATE EXTENSION vector;
CREATE EXTENSION postgis;
CREATE EXTENSION pg_textsearch;

Build

make build    # Build image
make test     # Build and verify extensions
make run      # Run container
make shell    # psql into container
make clean    # Remove image

Building manually

docker buildx build \
  --platform linux/amd64,linux/arm64 \
  -t docker.io/constructiveio/postgres:18 \
  -t docker.io/constructiveio/postgres:latest \
  --push .