From 89fb2caa75e082aff46d56545a1807539f96c426 Mon Sep 17 00:00:00 2001
From: naskya <m@naskya.net>
Date: Thu, 22 Feb 2024 17:04:30 +0900
Subject: [PATCH] container: upgrade postgres to v16 in example compose file

---
 docker-compose.example.yml | 2 +-
 docs/notice-for-admins.md  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/docker-compose.example.yml b/docker-compose.example.yml
index cc4d110d82..8c7c49429f 100644
--- a/docker-compose.example.yml
+++ b/docker-compose.example.yml
@@ -33,7 +33,7 @@ services:
 
   db:
     restart: unless-stopped
-    image: docker.io/postgres:12.2-alpine
+    image: docker.io/postgres:16-alpine
     container_name: firefish_db
     networks:
       - calcnet
diff --git a/docs/notice-for-admins.md b/docs/notice-for-admins.md
index d5744be47c..f07f6ecf2e 100644
--- a/docs/notice-for-admins.md
+++ b/docs/notice-for-admins.md
@@ -23,6 +23,8 @@
             mv /tmp/my/docker-compose.yml docker-compose.yml
             ```
     - If any modifications are needed to `docker-compose.yml` in the future, we will provide a notice.
+    - Also, PostgreSQL v12.2 (`docker.io/postgres:12.2-alpine`) has been used in this compose file, but we highly recommend that you upgrade it to a newer version (e.g., `docker.io/postgres:16-alpine`).
+        - Note: some manual (painful) operations are needed to upgrade the PostgreSQL major version, so please be careful when performing upgrades: <https://github.com/docker-library/postgres/issues/37>
 
 # v20240214