From f4381dc8a3b408371294a2ff5cc5e4b2c3dc60e3 Mon Sep 17 00:00:00 2001 From: notplants <@notplants> Date: Mon, 16 Feb 2026 14:45:12 -0500 Subject: [PATCH] Update to 0.2.6+v4.5.0 - Upgrade app images to v4.5.0 - Switch from postgres:16 to pgautoupgrade/pgautoupgrade:18-debian for automatic major version upgrades - Fix PGDATA relative path (add leading /) - Fix pg_backup.sh restore path to match PGDATA --- compose.yml | 6 +++--- pg_backup.sh | 2 +- release/0.2.6+v4.5.0 | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 release/0.2.6+v4.5.0 diff --git a/compose.yml b/compose.yml index 60431b5..f8255af 100644 --- a/compose.yml +++ b/compose.yml @@ -91,7 +91,7 @@ services: labels: - "traefik.enable=false" - "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}" - - "coop-cloud.${STACK_NAME}.version=0.2.5+v4.4.0" + - "coop-cloud.${STACK_NAME}.version=0.2.6+v4.5.0" user: "${DOCKER_USER:-1000}" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080"] @@ -168,7 +168,7 @@ services: - y_api_key db: - image: pgautoupgrade/pgautoupgrade:16-alpine + image: pgautoupgrade/pgautoupgrade:18-debian networks: - backend healthcheck: @@ -178,7 +178,7 @@ services: retries: 300 environment: <<: *postgres-env - PGDATA: var/lib/postgresql/data/pgdata + PGDATA: /var/lib/postgresql/data/pgdata volumes: - postgres:/var/lib/postgresql/data/pgdata deploy: diff --git a/pg_backup.sh b/pg_backup.sh index 1fb7892..7ff7c51 100644 --- a/pg_backup.sh +++ b/pg_backup.sh @@ -10,7 +10,7 @@ function backup { } function restore { - cd /var/lib/postgresql/data/ + cd /var/lib/postgresql/data/pgdata/ restore_config(){ # Restore allowed connections cat pg_hba.conf.bak > pg_hba.conf diff --git a/release/0.2.6+v4.5.0 b/release/0.2.6+v4.5.0 new file mode 100644 index 0000000..55034ee --- /dev/null +++ b/release/0.2.6+v4.5.0 @@ -0,0 +1,4 @@ +upgraded to v4.5.0, and also switched from postgres:16 to pgautoupgrade/pgautoupgrade:18-bookworm +for automatic major version upgrades + +no actions by operator should be necessary