Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker postgres fix #9041

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions contrib/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - Runs InvenTree web server under django development server
# - Monitors source files for any changes, and live-reloads server

ARG base_image=python:3.11-alpine3.18
ARG base_image=python:3.11-alpine3.21
FROM ${base_image} AS inventree_base
ARG base_image

Expand Down Expand Up @@ -69,8 +69,8 @@ RUN apk add --no-cache \
libjpeg libwebp zlib \
# 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 \
# Postgres client (note: backwards compatible with postgres server <= 17)
postgresql17-client \
# MySQL / MariaDB client
mariadb-client mariadb-connector-c \
&& \
Expand Down
4 changes: 2 additions & 2 deletions contrib/container/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
# Database service
# Use PostgreSQL as the database backend
inventree-db:
image: postgres:13
image: postgres:16
container_name: inventree-db
expose:
- ${INVENTREE_DB_PORT:-5432}/tcp
Expand All @@ -52,7 +52,7 @@ services:

# redis acts as database cache manager
inventree-cache:
image: redis:7.0
image: redis:7-alpine
container_name: inventree-cache
env_file:
- .env
Expand Down
2 changes: 1 addition & 1 deletion contrib/container/install_build_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
postgresql17-dev postgresql-libs \
$@
Loading