Skip to content

Commit

Permalink
fix(postgres): patch healthcheck to avoid 'role "root" does not exist…
Browse files Browse the repository at this point in the history
…' errors (#22)
  • Loading branch information
lucasmirloup authored Dec 15, 2023
1 parent 12c8b6a commit 6cdc5d0
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 28 deletions.
7 changes: 3 additions & 4 deletions database/postgres/10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_10:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_10:
7 changes: 3 additions & 4 deletions database/postgres/11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_11:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_11:
7 changes: 3 additions & 4 deletions database/postgres/12.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_12:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_12:
7 changes: 3 additions & 4 deletions database/postgres/13.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_13:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_13:
7 changes: 3 additions & 4 deletions database/postgres/14.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_14:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_14:
7 changes: 3 additions & 4 deletions database/postgres/15.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_15:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_15:
7 changes: 3 additions & 4 deletions database/postgres/9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ services:
- pgsql_9:/var/lib/postgres/data
environment:
PGDATA: /var/lib/postgres/data
POSTGRES_USER: postgres
POSTGRES_PASSWORD: root
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
timeout: 5s
retries: 5
start_period: 30s
start_period: 10s

volumes:
pgsql_9:

0 comments on commit 6cdc5d0

Please sign in to comment.