From 8bab30bb27ac97c18bd89b7e01c0ded28fc3ae0c Mon Sep 17 00:00:00 2001 From: Zikani Nyirenda Mwase Date: Mon, 7 Sep 2026 13:33:43 +0200 Subject: [PATCH 1/2] chore: Upgrade postgres in Dockerfile to 17 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6e72e74..a938906 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres:13-alpine AS base +FROM postgres:17-alpine AS base # Script to detect whether the database has finished initializing COPY ["true_isready.sh", "/usr/local/bin/"] From 9482a70dde86104871aead42e8ffb531bfb55790 Mon Sep 17 00:00:00 2001 From: Patrick Delcroix Date: Wed, 9 Sep 2026 15:23:26 +0200 Subject: [PATCH 2/2] Upgrade PostgreSQL image to 18-alpine Updated PostgreSQL base image to version 18-alpine and modified comments regarding volume mounting and database migration. --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a938906..67238f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ -FROM postgres:17-alpine AS base +FROM postgres:18-alpine AS base +# Volume should not be mounted on /var/lib/postgresql/data anymore but on var/lib/postgresql +# volumes: +# - database:/var/lib/postgresql +# pg13 dataabse are not compatible, use pgdump and reload database +# migration compose will be part of the dist_dkr # Script to detect whether the database has finished initializing COPY ["true_isready.sh", "/usr/local/bin/"] COPY ["database scripts/00_dump.sql", "database scripts/0[2345]_*.sql", "database scripts/json_schema_extension.sql", "/docker-entrypoint-initdb.d/"]