From 7ece5367a4c6a7998856877e2fbb77e58448b664 Mon Sep 17 00:00:00 2001 From: barodine Date: Sat, 2 May 2026 10:33:33 +0000 Subject: [PATCH] fix(compose): rename postgres volume to force fresh init with current password The existing postgres_data volume was initialized with a stale/mismatched password. Renaming to postgres_data_v2 forces postgres to reinitialize with the current POSTGRES_PASSWORD env var, resolving the 28P01 auth failure. Co-Authored-By: Paperclip --- compose.coolify.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/compose.coolify.yml b/compose.coolify.yml index dcee7ad..a5be54b 100644 --- a/compose.coolify.yml +++ b/compose.coolify.yml @@ -31,9 +31,7 @@ services: - 'coolify.name=agenthub' - 'coolify.type=application' - 'traefik.enable=true' - # Tell Traefik which Docker network to use for routing - 'traefik.docker.network=coolify' - # HTTPS router for agenthub.barodine.net - 'traefik.http.routers.agenthub.rule=Host(`agenthub.barodine.net`)' - 'traefik.http.routers.agenthub.entrypoints=websecure' - 'traefik.http.routers.agenthub.tls=true' @@ -57,7 +55,7 @@ services: POSTGRES_INITDB_ARGS: '--encoding=UTF8 --locale=C' PGDATA: /var/lib/postgresql/data/pgdata volumes: - - postgres_data:/var/lib/postgresql/data + - postgres_data_v2:/var/lib/postgresql/data restart: unless-stopped healthcheck: test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER:-agenthub} -d ${POSTGRES_DB:-agenthub}'] @@ -124,7 +122,7 @@ services: - 'ofelia.job-exec.backup-daily.command=/usr/local/bin/backup.sh' volumes: - postgres_data: + postgres_data_v2: driver: local labels: - 'coolify.managed=true'