Skip to content

Commit

Permalink
compose.yaml: specify user for postgres (#1140)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
philips authored Jun 24, 2024
1 parent f509a9d commit 8ecae20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ x-divviup-environment: &divviup_environment
services:
postgres:
image: docker.io/library/postgres:16
user: postgres
ports:
- "5432:5432"
healthcheck:
Expand Down

0 comments on commit 8ecae20

Please sign in to comment.