From 407ccb7bd210ba1b5fedcf1f82357859aa3e488a Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 7 Feb 2025 13:58:40 +1100 Subject: [PATCH] [Backport] Update supported postgres-cli version to 15 (#9042) * Update supported postgres-cli version to 15 * Update docs --- contrib/container/Dockerfile | 2 +- contrib/container/install_build_packages.sh | 2 +- docs/docs/start/docker.md | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/contrib/container/Dockerfile b/contrib/container/Dockerfile index 27a452f858..535fb197ec 100644 --- a/contrib/container/Dockerfile +++ b/contrib/container/Dockerfile @@ -70,7 +70,7 @@ RUN apk add --no-cache \ # Weasyprint requirements : https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#alpine-3-12 py3-pip py3-pillow py3-cffi py3-brotli pango poppler-utils openldap \ # Postgres client - postgresql13-client \ + postgresql15-client \ # MySQL / MariaDB client mariadb-client mariadb-connector-c \ && \ diff --git a/contrib/container/install_build_packages.sh b/contrib/container/install_build_packages.sh index bbeae43a54..87936506ec 100644 --- a/contrib/container/install_build_packages.sh +++ b/contrib/container/install_build_packages.sh @@ -8,5 +8,5 @@ apk add gcc g++ musl-dev openssl-dev libffi-dev cargo python3-dev openldap-dev \ jpeg-dev openjpeg-dev libwebp-dev zlib-dev \ sqlite sqlite-dev \ mariadb-connector-c-dev mariadb-client mariadb-dev \ - postgresql13-dev postgresql-libs \ + postgresql15-dev postgresql-libs \ $@ diff --git a/docs/docs/start/docker.md b/docs/docs/start/docker.md index 27863f8173..a097664ea4 100644 --- a/docs/docs/start/docker.md +++ b/docs/docs/start/docker.md @@ -46,7 +46,7 @@ InvenTree run-time configuration options described in the [configuration documen As docker containers are ephemeral, any *persistent* data must be stored in an external [volume](https://docs.docker.com/storage/volumes/). To simplify installation / implementation, all external data are stored in a single volume, arranged as follows: -#### Media FIles +#### Media Files Uploaded media files are stored in the `media/` subdirectory of the external data volume. @@ -112,6 +112,13 @@ InvenTree stores any persistent data (e.g. uploaded media files, database data, !!! info "Data Directory" Make sure you change the path to the local directory where you want persistent data to be stored. +#### Database Connection + +The `inventree-db` container is configured to use the `postgres:13` docker image. The `inventree-server` and `inventree-worker` containers support connection to a postgres database up to (and including) version 15. + +!!! warning "Newer Postgres Versions" + The InvenTree docker image supports connection to a postgres database up to version 15. Connecting to a database using a newer version of postgres is not possible. + ## Common Issues ### Volume Mapping