Skip to content

Commit

Permalink
Use postgres 15 images (OpenSlides#6711)
Browse files Browse the repository at this point in the history
  • Loading branch information
peb-adr authored Dec 13, 2023
1 parent a6967fe commit cc5ebae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,21 @@ To check the current status and start migrations if necessary, run:
- The environment variables `DATASTORE_DATABASE_*` were renamed to
`DATABASE_*`. If custom values were used, this must be reflected in config
files.
- 4.1.0
- PostgreSQL major is updated from 11 to 15. This means postgres will
complain about the data being incompatible
- The recommended way of porting your data is:
1. Dump the contents of your DB ([Database backup](#database-backup))
2. Do the update ([Update to a new version](#update-to-a-new-version))
- Be sure to do fetch the new binary of the `openslides` tool as described
3. Restore the dump into the DB, which should now be running on version 15 ([Database backup](#database-backup))
- If you updated without dumping beforehand and ran into postgres' error log
you can downgrade by using the old `openslides` tool to get PostgreSQL 11
again and then follow these steps
- More intricate proposals exist for upgrading PostgreSQL (such as
https://github.com/tianon/docker-postgres-upgrade) aiming at providing less
downtime but these are not production ready and should only be pursued if
you know specifically what you are doing.


## SSL encryption
Expand Down
2 changes: 1 addition & 1 deletion dev/docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ services:
- 5679:5678

postgres:
image: postgres:11
image: postgres:15
environment:
- POSTGRES_USER=openslides
- POSTGRES_PASSWORD=openslides
Expand Down
2 changes: 1 addition & 1 deletion dev/docker/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3"
services:
postgres-test:
image: postgres:11
image: postgres:15
environment:
- POSTGRES_USER=openslides
- POSTGRES_PASSWORD=openslides
Expand Down

0 comments on commit cc5ebae

Please sign in to comment.