fix(db): role-agnostic migrate/seed — libpq env drives user/database (M2 §4)

This commit is contained in:
2026-08-21 20:59:46 +01:00
parent 8c37e54dbb
commit 4bc2f8a02d
+2 -2
View File
@@ -34,8 +34,8 @@ services:
- PGPASSWORD= - PGPASSWORD=
- PGDATABASE=dcntrlized - PGDATABASE=dcntrlized
command: > command: >
sh -c 'until pg_isready -h dcntrlized-db -U postgres -d dcntrlized; do sleep 2; done; sh -c 'until pg_isready -h dcntrlized-db; do sleep 2; done;
for f in /migrations/*.sql; do [ -f "$$f" ] || continue; echo "Applying $$f"; psql -v ON_ERROR_STOP=1 -d dcntrlized -f "$$f" || exit 1; done' for f in /migrations/*.sql; do [ -f "$$f" ] || continue; echo "Applying $$f"; psql -v ON_ERROR_STOP=1 -f "$$f" || exit 1; done'
networks: networks:
dcntrlized_net: dcntrlized_net: