Skip to content

Commit 0811275

Browse files
committed
fix healthcheck for postgres container
1 parent 9a0c4fe commit 0811275

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ services:
5555
- ${POSTGRES_DATA_DIR}:/var/lib/postgresql/data
5656
restart: unless-stopped
5757
healthcheck:
58-
test: ['CMD-SHELL', 'pg_isready', '-d', 'paradb']
58+
test: ['CMD-SHELL', 'su', '-c', 'pg_isready -U paradb -d paradb', 'postgres']
5959
retries: 5
6060
timeout: 60s
6161
start_period: 10s

0 commit comments

Comments
 (0)