Show HN: Pglayers – PostgreSQL extensions as stackable Docker layers
Key takeaways
- The official Postgre SQL Docker images ship without extensions.
- It's both a ready-to-use Postgre SQL distribution with extensions pre-installed and a tool to build your own custom image with exactly the extensions you need -- all on top of the official postgres Docker images.
- Each extension is published as a minimal Docker image layer containing only its binaries.
The official Postgre SQL Docker images ship without extensions. Every time you need pgvector, Post GIS, or pg_cron, you're stuck manually installing dependencies, compiling from source, or settling for third-party images that bundle a fixed set of extensions.
pglayers fixes this. It's both a ready-to-use Postgre SQL distribution with extensions pre-installed and a tool to build your own custom image with exactly the extensions you need -- all on top of the official postgres Docker images. You don't need to figure out how to build PostgreSQL extensions, install dependencies, or set up compilers.
Each extension is published as a minimal Docker image layer containing only its binaries. You stack them on top of the official postgres image using COPY --from -- one line per extension, no compilation.