mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	[Backport] Update supported postgres-cli version to 15 (#9042)
* Update supported postgres-cli version to 15 * Update docs
This commit is contained in:
		@@ -70,7 +70,7 @@ RUN apk add --no-cache \
 | 
				
			|||||||
    # Weasyprint requirements : https://doc.courtbouillon.org/weasyprint/stable/first_steps.html#alpine-3-12
 | 
					    # 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 \
 | 
					    py3-pip py3-pillow py3-cffi py3-brotli pango poppler-utils openldap \
 | 
				
			||||||
    # Postgres client
 | 
					    # Postgres client
 | 
				
			||||||
    postgresql13-client \
 | 
					    postgresql15-client \
 | 
				
			||||||
    # MySQL / MariaDB client
 | 
					    # MySQL / MariaDB client
 | 
				
			||||||
    mariadb-client mariadb-connector-c \
 | 
					    mariadb-client mariadb-connector-c \
 | 
				
			||||||
    && \
 | 
					    && \
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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 \
 | 
					    jpeg-dev openjpeg-dev libwebp-dev zlib-dev \
 | 
				
			||||||
    sqlite sqlite-dev \
 | 
					    sqlite sqlite-dev \
 | 
				
			||||||
    mariadb-connector-c-dev mariadb-client mariadb-dev \
 | 
					    mariadb-connector-c-dev mariadb-client mariadb-dev \
 | 
				
			||||||
    postgresql13-dev postgresql-libs \
 | 
					    postgresql15-dev postgresql-libs \
 | 
				
			||||||
    $@
 | 
					    $@
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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:
 | 
					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.
 | 
					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"
 | 
					!!! info "Data Directory"
 | 
				
			||||||
    Make sure you change the path to the local directory where you want persistent data to be stored.
 | 
					    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
 | 
					## Common Issues
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Volume Mapping
 | 
					### Volume Mapping
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user