fix(db): restore postgres command dropped by entrypoint override

Overriding entrypoint in compose clears the image default CMD, leaving
pgautoupgrade with no $1=postgres, so its version logic ran with unset
PGTARGET_MAJOR and aborted. Restore command: postgres.
This commit is contained in:
notplants
2026-06-18 22:38:09 +00:00
parent af76d06c2d
commit 36a88fe5d2
+3
View File
@@ -78,6 +78,9 @@ services:
target: /pg_backup.sh
mode: 0555
entrypoint: /usr/local/bin/cc-db-entrypoint.sh
# overriding entrypoint drops the image's default CMD, so restore it; the
# wrapper passes "$@" through and pgautoupgrade keys its logic on $1=postgres
command: postgres
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=discourse