openproject-deploy icon indicating copy to clipboard operation
openproject-deploy copied to clipboard

stable/16: Wrong pgsql version in docker-compose.yml

Open Kurapikov opened this issue 8 months ago • 5 comments

It should be 16 rather than 13.

BR.

Kurapikov avatar May 27 '25 20:05 Kurapikov

This is still an issue, and a trivial fix, how come such a straightforward issue sits open for six months?

davemc50 avatar Sep 16 '25 18:09 davemc50

It should even be 17

Tofandel avatar Oct 14 '25 09:10 Tofandel

For existing installations, Postgres data needs to be migrated before the version can be changed from 13 to 16. https://www.openproject.org/docs/installation-and-operations/misc/migration-to-postgresql17/

Probably that's why the Postgres version in docker compose is old.

It would be nice to have a recent recommended Postgres version in docker compose by the default, though

nWacky avatar Dec 08 '25 07:12 nWacky

Can we just change it to 17 for new installations? Other than the migration commands, I can't remember anything special about updating the docker compose file before pulling it.

area51tazz avatar Jan 09 '26 13:01 area51tazz

You can with a docker-compose.override.yml file, if you already migrated your data to postgres 17 or for a new installation

services:
  db:
    image: postgres:17
    environment:
      POSTGRES_USER: openproject
  # If you don't need the nginx reverse proxy
  proxy:
    profiles:
      - donotstart

This file is gitignored, so it will survive a git pull. This is the proper way to make customisations to the docker compose file

Tofandel avatar Jan 12 '26 10:01 Tofandel