From 8ecae20c11e7e14dbf973be75907197516558c0b Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Mon, 24 Jun 2024 09:28:50 -0700 Subject: [PATCH] compose.yaml: specify user for postgres (#1140) This container was emitting `FATAL: role "root" does not exist` which lead me to suspect an issue with some invocation of psql internally running as root. I didn't investigate further as setting the user to postgres seems to fix the issue. Tested with podman compose on macOS. --- compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yaml b/compose.yaml index 33da4b61..bebfdfc8 100644 --- a/compose.yaml +++ b/compose.yaml @@ -52,6 +52,7 @@ x-divviup-environment: &divviup_environment services: postgres: image: docker.io/library/postgres:16 + user: postgres ports: - "5432:5432" healthcheck: