Skip to content

Commit

Permalink
update docker-compose.yml to use user defined user for healthcheck in…
Browse files Browse the repository at this point in the history
…stead of postgres

Apparently the Postgres image does not automatically create the postgres user anymore
  • Loading branch information
dale-wahl committed Aug 29, 2023
1 parent c7f76f1 commit 8c4fcec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
volumes:
- 4cat_db:/var/lib/postgresql/data/
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
Expand Down
2 changes: 1 addition & 1 deletion docker-compose_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
volumes:
- 4cat_db:/var/lib/postgresql/data/
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
Expand Down
2 changes: 1 addition & 1 deletion docker-compose_public_ip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ services:
volumes:
- 4cat_db:/var/lib/postgresql/data/
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
test: [ "CMD-SHELL", "pg_isready -U $${POSTGRES_USER}" ]
interval: 5s
timeout: 5s
retries: 5
Expand Down

0 comments on commit 8c4fcec

Please sign in to comment.