From b135a3011e522bd7acc43219f7bdc318661c95a4 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Fri, 3 Oct 2025 02:19:19 +0800 Subject: [PATCH] =?UTF-8?q?build(postgres):=20=E6=9B=B4=E6=96=B0=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E7=8E=AF=E5=A2=83PostgreSQL=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E8=87=B3v18?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整数据卷挂载路径以适配PostgreSQL v18版本,并更新镜像标签变量为IMAGE_TAG_V18 --- dbSer/postgres/prod.stack.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dbSer/postgres/prod.stack.yml b/dbSer/postgres/prod.stack.yml index efd3bde..52e67b4 100644 --- a/dbSer/postgres/prod.stack.yml +++ b/dbSer/postgres/prod.stack.yml @@ -4,7 +4,7 @@ services: postgres: - image: ${IMAGE_TAG} + image: ${IMAGE_TAG_V18} container_name: prod-postgres restart: always shm_size: 256mb @@ -14,7 +14,9 @@ services: - POSTGRES_INITDB_ARGS=--auth-host=${POSTGRES_HOST_AUTH_METHOD} - TZ=Asia/Shanghai volumes: - - /data/volumes/postgres/data:/var/lib/postgresql/data + # >=17 版本,数据目录为 /var/lib/postgresql + # <=16 版本,数据目录为 /var/lib/postgresql/data + - /data/volumes/postgres/data:/var/lib/postgresql - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: