fix: optional Postgres via compose-with-db overlay - #276
Conversation
Avoid editing tracked compose.yaml for PostgreSQL by adding a compose-with-db.yaml merge file, matching other optional overlays.
Pin db image via POSTGRES_IMAGE and keep temporary POSTGRESQL_UPGRADE in a gitignored override so users never edit tracked compose-with-db.yaml.
017de44 to
1432f89
Compare
PR Summary by QodoFix optional Postgres setup using a compose-with-db overlay
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used✅ Cross-repo context Not relevant to this PR:
redhat-developer/rhdh Not relevant to this PR:
redhat-developer/rhdh-plugins 1. DB admin password unset
|
|



Description
Fixes RHDHBUGS-1865: enabling the optional PostgreSQL service no longer requires uncommenting blocks in the default
compose.yaml(which caused merge conflicts on pull).compose-with-db.yamloverlay (same pattern ascompose-with-corporate-proxy.yaml/compose-dynamic-plugins-root.yaml)compose.yamlat the overlay instead of a commenteddbservice-f compose.yaml -f compose-with-db.yaml, including a combined example withcompose-with-corporate-proxy.yamlcompose.override.yaml+POSTGRES_IMAGE(do not edit trackedcompose-with-db.yaml)Stacked on #278 (
docs/pg16-to-pg18-upgrade) — GitHub stack #279. Retarget tomainafter #278 merges (or merge viagh stack merge).Which issue(s) does this PR fix or relate to
PR acceptance criteria
How to test changes / Special notes to the reviewer
compose.yamlfor Postgrespodman login registry.redhat.ioPOSTGRES_*into.env; switchapp-config.local.yamlfrom SQLite topgas in the guidepodman compose -f compose.yaml -f compose-with-db.yaml up -d→dbhealthy, RHDH uppodman compose -f compose.yaml -f compose-with-db.yaml -f compose-with-corporate-proxy.yaml configmergesdb+proxy+rhdh.depends_onnpx --yes dclint compose-with-db.yaml→ 0 errors