use postgres 17 for new installations, add upgrade hint (#147)

This commit is contained in:
Markus Kahl
2026-02-18 13:46:49 +00:00
committed by GitHub
parent da8b9f8677
commit 72312ce860
2 changed files with 8 additions and 1 deletions

View File

@@ -24,3 +24,4 @@ PGDATA="/var/lib/postgresql/data"
OPDATA="/var/openproject/assets"
COLLABORATIVE_SERVER_URL=ws://localhost:8080/hocuspocus
COLLABORATIVE_SERVER_SECRET=secret12345
POSTGRES_VERSION=17 # Note for existing setups: make sure this is the same version you are using right now, or upgrade your database

View File

@@ -33,7 +33,13 @@ x-op-app: &app
services:
db:
image: postgres:13
# The default here should really be 17 but is still 13 as to not break existing setups.
# New installations using the provided .env.example will use 17 to begin with.
# The default here will change to 17 as well with the next major update (18).
#
# Refer to the docs on how to upgrade to postgres 17 before then:
# https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql17/
image: postgres:${POSTGRES_VERSION:-13}
<<: *restart_policy
stop_grace_period: "3s"
volumes: