diff --git a/host-pottwal.yml b/host-pottwal.yml
index af402a2..3fc83d8 100644
--- a/host-pottwal.yml
+++ b/host-pottwal.yml
@@ -121,7 +121,7 @@
     - name: Ensure shlink database container is running
       community.docker.docker_container:
         name: shlinkdb
-        image: postgres:16.8-alpine
+        image: postgres:17.4-alpine
         pull: true
         state: started
         restart_policy: unless-stopped
diff --git a/host_vars/pottwal.n39.eu/vars.yml b/host_vars/pottwal.n39.eu/vars.yml
index 81ea47d..d9bcb4a 100644
--- a/host_vars/pottwal.n39.eu/vars.yml
+++ b/host_vars/pottwal.n39.eu/vars.yml
@@ -23,7 +23,7 @@ shlink_postgres_password: "{{ vault_shlink_postgres_password }}"
 hedgedoc_host_port: 8084
 hedgedoc_domain_name: pad.n39.eu
 hedgedoc_image: quay.io/hedgedoc/hedgedoc:1.10.3
-hedgedoc_db_image: postgres:16.8-alpine
+hedgedoc_db_image: postgres:17.4-alpine
 hedgedoc_postgres_password: "{{ vault_hedgedoc_postgres_password }}"
 
 redmine_host_port: 8087