rbehzadan/postgres

By rbehzadan

•Updated 11 months ago

PostgreSQL for Data Science & AI Workloads

Image
Machine learning & AI
Data science
Databases & storage
0

850

rbehzadan/postgres repository overview

⁠PostgreSQL for Data Science & AI Workloads šŸ§ šŸ“Š

This Docker image provides PostgreSQL with powerful extensions optimized for data science, analytics, and AI/ML workloads.

šŸ”„ Multi-Architecture Support: Available for AMD64 and ARM64 architectures.


ā šŸ“¦ Features & Installed Extensions

This image comes with pre-installed PostgreSQL extensions for enhanced data processing, analytics, and AI use cases:

  • šŸ” Vector search for AI/ML (pgvector)
  • šŸ“ˆ Time-series analysis (TimescaleDB)
  • šŸ“„ Parquet file format support (pg_parquet from CrunchyData)
  • šŸ“Š Graph database support (AGE)
  • ⚔ Efficient JSON querying (jsquery)
  • šŸ—ļø Partitioning for large datasets (pg_partman)
  • šŸ› ļø Query optimization & hinting (pg-hint-plan)
  • šŸ”’ Advanced auditing (pgaudit)
  • šŸ“… Job scheduling inside PostgreSQL (pg_cron)
  • šŸ”„ Event queueing system (pgq3)
  • šŸ”” Advanced regex support (pgpcre)

šŸ“Œ Note: Building pg_parquet is resource-intensive and may take a long time.


ā šŸš€ How to Use This Image

⁠1ļøāƒ£ Pull the Image
docker pull rbehzadan/postgres:17.6

This automatically pulls the correct architecture (ARM64 or AMD64) based on your system.


⁠2ļøāƒ£ Running the Container
docker run -d --name postgres \
  -e POSTGRES_USER=admin \
  -e POSTGRES_PASSWORD=secret \
  -e POSTGRES_DB=mydb \
  -p 5432:5432 \
  rbehzadan/postgres:17.6

⁠3ļøāƒ£ Connecting to the Database

Using psql:

docker exec -it postgres psql -U admin -d mydb

ā šŸ› ļø Enabling Extensions

Enable any installed extension inside PostgreSQL:

CREATE EXTENSION pg_parquet;
CREATE EXTENSION timescaledb;
CREATE EXTENSION pgvector;
CREATE EXTENSION age;
CREATE EXTENSION pgq3;
CREATE EXTENSION pgpcre;

ā šŸ“Š Health Check

Verify the container's health status:

docker inspect --format='{{json .State.Health}}' postgres

ā šŸ–„ļø Available Architectures

This image is available for the following architectures:
āœ… AMD64 (linux/amd64)
āœ… ARM64 (linux/arm64) (for ARM-based servers like AWS Graviton, Raspberry Pi, or Mac M1/M2 chips)

The correct version will be pulled automatically based on your system.


ā šŸ¤ Contributing

If you find a bug, want to add an extension, or optimize the build process, feel free to:


ā šŸ“œ License

This project is licensed under the MIT License.


ā šŸŽÆ Why This Image?

This image is optimized for data science, AI, and large-scale analytics. Whether you're building a feature store for ML, processing time-series data, or handling graph-based queries, this setup provides high-performance PostgreSQL with the right extensions pre-installed.

Tag summary

Content type

Image

Digest

sha256:151bec9b7…

Size

181.8 MB

Last updated

11 months ago

docker pull rbehzadan/postgres:17.6