https://github.com/flessner/postgres-fe
A minimal PostgreSQL Docker image with essential extensions.
https://github.com/flessner/postgres-fe
postgres postgresql
Last synced: 9 months ago
JSON representation
A minimal PostgreSQL Docker image with essential extensions.
- Host: GitHub
- URL: https://github.com/flessner/postgres-fe
- Owner: flessner
- Created: 2025-09-01T14:06:48.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-01T16:15:08.000Z (10 months ago)
- Last Synced: 2025-09-01T16:27:26.668Z (10 months ago)
- Topics: postgres, postgresql
- Language: PLpgSQL
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PostgreSQL Flessner Edition
A minimal [PostgreSQL](https://github.com/postgres/postgres) Docker image with essential extensions for version `15`, `16` and `17`.
## Features
- **pgvector** - Vector similarity search for AI/ML applications
- **postgis** - Spatial and geographic data support
- **hstore** - Key-value pair storage
- **pg_cron** - Database-native job scheduling
- **pgcrypto** - Cryptographic functions
- **pg_stat_statements** - Query performance tracking
- **nanoid** - Compact, URL-friendly unique identifier generation
- **pg_trgm** - Fuzzy text search and similarity matching
## Usage
```bash
# Command for running Postgres 17 (latest)
docker run -d --name postgres-fe \
-p 5432:5432 \
-e POSTGRES_PASSWORD=p4ssw0rd \
-v data:/var/lib/postgresql \
ghcr.io/flessner/postgres-fe:17
```
```yaml
# Docker compose for running Postgres 17 (latest)
services:
postgres:
image: ghcr.io/flessner/postgres-fe:17
container_name: postgres-fe
ports:
- "5432:5432"
environment:
POSTGRES_DB: postgres # Defaults to 'postgres'
POSTGRES_USER: postgres # Defaults to 'postgres'
POSTGRES_PASSWORD: p4ssw0rd
volumes:
- data:/var/lib/postgresql
restart: unless-stopped
volumes:
data:
```
## Notes on drizzle
[Drizzle](https://orm.drizzle.team/) requires the following entry in its config to ignore the automatically generated extension tables.
```ts
export default defineConfig({
// ...
tablesFilter: ['!pg_stat_monitor', '!spatial_ref_sys', '!geography_columns', '!geometry_columns'],
});
```
## Available Tags
- `latest`, `17` - PostgreSQL 17
- `16` - PostgreSQL 16
- `15` - PostgreSQL 15