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
This commit is contained in:
notplants
2026-02-16 14:45:12 -05:00
parent de32805e71
commit f4381dc8a3
3 changed files with 8 additions and 4 deletions

View File

@ -91,7 +91,7 @@ services:
labels: labels:
- "traefik.enable=false" - "traefik.enable=false"
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}" - "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}" user: "${DOCKER_USER:-1000}"
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"] test: ["CMD", "curl", "-f", "http://localhost:8080"]
@ -168,7 +168,7 @@ services:
- y_api_key - y_api_key
db: db:
image: pgautoupgrade/pgautoupgrade:16-alpine image: pgautoupgrade/pgautoupgrade:18-debian
networks: networks:
- backend - backend
healthcheck: healthcheck:
@ -178,7 +178,7 @@ services:
retries: 300 retries: 300
environment: environment:
<<: *postgres-env <<: *postgres-env
PGDATA: var/lib/postgresql/data/pgdata PGDATA: /var/lib/postgresql/data/pgdata
volumes: volumes:
- postgres:/var/lib/postgresql/data/pgdata - postgres:/var/lib/postgresql/data/pgdata
deploy: deploy:

View File

@ -10,7 +10,7 @@ function backup {
} }
function restore { function restore {
cd /var/lib/postgresql/data/ cd /var/lib/postgresql/data/pgdata/
restore_config(){ restore_config(){
# Restore allowed connections # Restore allowed connections
cat pg_hba.conf.bak > pg_hba.conf cat pg_hba.conf.bak > pg_hba.conf

4
release/0.2.6+v4.5.0 Normal file
View File

@ -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