https://github.com/osventuresllc/cnpg-ai
AI ready PostgreSQL database with Barman Cloud based on TimescaleDB, pgvector and pgvectorscale extensions for CloudNativePG
https://github.com/osventuresllc/cnpg-ai
cloudnativepg docker pgvector pgvectorscale postgresql timescaledb
Last synced: 7 months ago
JSON representation
AI ready PostgreSQL database with Barman Cloud based on TimescaleDB, pgvector and pgvectorscale extensions for CloudNativePG
- Host: GitHub
- URL: https://github.com/osventuresllc/cnpg-ai
- Owner: osventuresllc
- License: apache-2.0
- Created: 2024-11-20T06:50:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-11-28T20:16:07.000Z (11 months ago)
- Last Synced: 2024-11-28T21:23:54.576Z (11 months ago)
- Topics: cloudnativepg, docker, pgvector, pgvectorscale, postgresql, timescaledb
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# CloudNativePG AI Ready Image
[](https://github.com/osventuresllc/cnpg-ai/actions/workflows/build.yaml)
[](https://github.com/cloudnative-pg/cloudnative-pg)
[](https://github.com/timescale/timescaledb)
[](https://github.com/pgvector/pgvector)
[](https://github.com/timescale/pgvectorscale)
This repo builds Docker images for [CloudNativePG](https://cloudnative-pg.io/) with the following extensions installed:
- [TimescaleDB](https://timescale.com) for time-series data
- [pgvector](https://github.com/pgvector/pgvector) for vector similarity search
- [pgvectorscale](https://github.com/timescale/pgvectorscale) for scalable vector operations
## Usage
### Docker Compose
```yaml
services:
postgresql:
image: ghcr.io/osventuresllc/cnpg-ai:16
user: root
command: >
postgres -c shared_preload_libraries='timescaledb'
environment:
POSTGRES_USER: cnpg
POSTGRES_PASSWORD: cnpg
POSTGRES_DB: cnpg
ports:
- 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
postgres-data:
```
### CloudNativePG Cluster
```yaml
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: example
spec:
instances: 3
imageName: ghcr.io/osventuresllc/cnpg-ai:16
postgresql:
shared_preload_libraries:
- timescaledb
bootstrap:
initdb:
postInitTemplateSQL:
- CREATE EXTENSION IF NOT EXISTS timescaledb;
- CREATE EXTENSION IF NOT EXISTS vector;
- CREATE EXTENSION IF NOT EXISTS vectorscale CASCADE;
```
## Acknowledgements
- [CloudNativePG](https://cloudnative-pg.io/)
- [TimescaleDB](https://timescale.com)
- [pgvector](https://github.com/pgvector/pgvector)
- [pgvectorscale](https://github.com/timescale/pgvectorscale)
- [Original work](https://github.com/clevyr/docker-cloudnativepg-timescale) done by @clevyr to create the CloudNativePG TimescaleDB image and Renovate config