From 02b3b731d7e36f688ff4bf70bad9303eef81476f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 7 Feb 2025 02:07:19 +0000 Subject: [PATCH] Update docker docs --- docs/docs/start/docker.md | 12 +++++++++--- docs/mkdocs.yml | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/docs/start/docker.md b/docs/docs/start/docker.md index a097664ea4..eb900e9125 100644 --- a/docs/docs/start/docker.md +++ b/docs/docs/start/docker.md @@ -112,12 +112,18 @@ 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 +### 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. +The `inventree-db` container is configured to use the `postgres:{{ config.extra.docker_postgres_version }}` docker image. + +Connecting to a different database container is entirely possible, but requires modification of the `docker-compose.yml` file. This is outside the scope of this documentation. + +#### Postgres Version + +The `inventree-server` and `inventree-worker` containers support connection to a postgres database up to (and including) version {{ config.extra.docker_postgres_version }}. !!! 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. + The InvenTree docker image supports connection to a postgres database up to version {{ config.extra.docker_postgres_version }}. Connecting to a database using a newer version of postgres is not possible. ## Common Issues diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 848dc90e76..4957d45436 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -285,6 +285,7 @@ extra: min_python_version: 3.9 min_invoke_version: 2.0.0 django_version: 4.2 + docker_postgres_version: 16 version: default: stable