# TimescaleDB with Toolkit extension # Builds from official PostgreSQL image with TimescaleDB and Toolkit added # This provides feature parity with the supervised image FROM postgres:15-bookworm # Install TimescaleDB and Toolkit from official TimescaleDB repo RUN apt-get update \ && apt-get install -y --no-install-recommends \ curl \ ca-certificates \ gnupg \ && curl -fsSL https://packagecloud.io/timescale/timescaledb/gpgkey | gpg --dearmor -o /usr/share/keyrings/timescaledb-keyring.gpg \ && echo "deb [signed-by=/usr/share/keyrings/timescaledb-keyring.gpg] https://packagecloud.io/timescale/timescaledb/debian/ bookworm main" > /etc/apt/sources.list.d/timescaledb.list \ && apt-get update \ && apt-get install -y --no-install-recommends \ timescaledb-2-postgresql-15 \ timescaledb-toolkit-postgresql-15 \ && rm -rf /var/lib/apt/lists/* \ && apt-get purge -y --auto-remove curl gnupg # Enable TimescaleDB in PostgreSQL config RUN echo "shared_preload_libraries = 'timescaledb'" >> /usr/share/postgresql/postgresql.conf.sample