This repo builds Docker images for CloudNativePG with the TimescaleDB and Postgis extensions installed.
Both versions are automatically updated by Renovate bot, so new releases will be available within a few hours.
Images are available at ghcr.io/eznix86/docker-cloudnativepg-timescale-postgis.
Set .spec.imageName in the Cluster to use one of the container images provided by this repository.
For example:
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: example
spec:
instances: 3
imageName: ghcr.io/eznix86/cloudnativepg-timescale-postgis:17-ts2-postgis3
postgresql:
shared_preload_libraries:
- timescaledb
bootstrap:
initdb:
postInitTemplateSQL:
- CREATE EXTENSION IF NOT EXISTS timescaledb;
- CREATE EXTENSION IF NOT EXISTS postgis;
- CREATE EXTENSION IF NOT EXISTS postgis_topology;
- CREATE EXTENSION IF NOT EXISTS fuzzystrmatch;
- CREATE EXTENSION IF NOT EXISTS postgis_tiger_geocoder;