Skip to content

Commit

Permalink
compose.yaml: specify user for postgres
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 committed Jun 24, 2024
1 parent f509a9d commit a927b47
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 a927b47

Please sign in to comment.