diff --git a/infra/docker/database/pg13_16.Dockerfile b/infra/docker/database/pg13_16.Dockerfile index cedebdb38c..57d5b278e4 100644 --- a/infra/docker/database/pg13_16.Dockerfile +++ b/infra/docker/database/pg13_16.Dockerfile @@ -26,6 +26,13 @@ RUN \ timescaledb-$TIMESCALEDB_MAJOR-loader-postgresql-$PG_MAJOR=$TIMESCALEDB_VERSION* && \ rm -rf /var/lib/apt/lists/* +RUN for file in $(find /usr/share/postgresql -name 'postgresql.conf.sample'); do \ + # We want timescaledb to be loaded in this image by every created cluster + sed -r -i "s/[#]*\s*(shared_preload_libraries)\s*=\s*'(.*)'/\1 = 'timescaledb,\2'/;s/,'/'/" $file \ + # We need to listen on all interfaces, otherwise PostgreSQL is not accessible + && echo "listen_addresses = '*'" >> $file; \ + done + # Install PostGIS extension RUN \ POSTGIS_MAJOR=$(echo $POSTGIS_VERSION | cut -c1) && \