diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7912b7fd..8285bd59 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -116,7 +116,7 @@ jobs:
 
     services:
       postgres:
-        image: postgres:16-alpine@sha256:d898b0b78a2627cb4ee63464a14efc9d296884f1b28c841b0ab7d7c42f1fffdf
+        image: postgres:17-alpine@sha256:c261f8fbc72905b749164ab7d7e88e5319027658c402b8c9664205a46691fcde
         env:
           POSTGRES_PASSWORD: postgres
         options: >-
diff --git a/compose.yml b/compose.yml
index fec62a5d..fb546818 100644
--- a/compose.yml
+++ b/compose.yml
@@ -18,7 +18,7 @@ services:
       postgres:
         condition: service_healthy
   postgres:
-    image: postgres:16-alpine@sha256:d898b0b78a2627cb4ee63464a14efc9d296884f1b28c841b0ab7d7c42f1fffdf
+    image: postgres:17-alpine@sha256:c261f8fbc72905b749164ab7d7e88e5319027658c402b8c9664205a46691fcde
     environment:
       - POSTGRES_PASSWORD=postgres
     ports: