Skip to content

Commit 6580f74

Browse files
committed
chore(compose): bump postgres to 17
Django 5.2 dropped support for PostgreSQL 13. Refs: NS-193
1 parent b8d9658 commit 6580f74

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: City-of-Helsinki/.github/.github/workflows/ci-django-api.yml@main
1313
secrets: inherit
1414
with:
15-
postgres-major-version: 13
1615
python-version: 3.12
16+
postgres-major-version: 17
1717
extra-commands: |
1818
echo 'SECRET_KEY=topsecret123' >> .env

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ If you encounter deprecation warnings on newer versions, you may need to downgra
9696

9797
### PostgreSQL
9898

99-
Postgresql 13 is the minimum version required. You can check your version by running `psql --version`.
99+
Postgresql 17 is the minimum version required. You can check your version by running `psql --version`.
100100

101101
If you are running the project without Docker, you may need to install and configure PostgreSQL manually. The default configuration file is `docker-compose.env`, which you may need to adjust for your local setup.
102102

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
postgres:
3-
image: postgres:13
3+
image: postgres:17-alpine
44
restart: on-failure
55
environment:
66
POSTGRES_USER: notification_service
@@ -11,7 +11,7 @@ services:
1111
# networks:
1212
# - helsinki
1313
volumes:
14-
- pgdata:/var/lib/postgresql@13/data
14+
- pgdata:/var/lib/postgresql@17/data
1515
container_name: notification_service-db
1616

1717
keycloak:

docs/development-without-docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Please refer to the [main README](/README.md) for the latest instructions.
2020

2121
## Prerequisites
2222

23-
- PostgreSQL 13
23+
- PostgreSQL 17
2424
- Python 3.12
2525
- Keycloak
2626

0 commit comments

Comments
 (0)