Skip to content

Commit 4af2196

Browse files
committed
Fix healthcheck
-U/-d don't need to be correct for it to work, and these seemed to be ignored in the array. Kind of annoying as it keeps logging "role root does not exist" in dev.
1 parent 38a54e4 commit 4af2196

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compose.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
entrypoint: '/init/entry.sh'
2727
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
2828
shm_size: '128mb'
29-
healthcheck: {test: ['CMD-SHELL', 'pg_isready', '-U', 'pqgo', '-d', 'pqgo'], start_period: '30s', start_interval: '1s'}
29+
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
3030
environment:
3131
'POSTGRES_DATABASE': 'pqgo'
3232
'POSTGRES_USER': 'pqgo'
@@ -38,7 +38,7 @@ services:
3838
entrypoint: '/init/entry.sh'
3939
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
4040
shm_size: '128mb'
41-
healthcheck: {test: ['CMD-SHELL', 'pg_isready', '-U', 'pqgo', '-d', 'pqgo'], start_period: '30s', start_interval: '1s'}
41+
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
4242
environment:
4343
'POSTGRES_DATABASE': 'pqgo'
4444
'POSTGRES_USER': 'pqgo'
@@ -50,7 +50,7 @@ services:
5050
entrypoint: '/init/entry.sh'
5151
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
5252
shm_size: '128mb'
53-
healthcheck: {test: ['CMD-SHELL', 'pg_isready', '-U', 'pqgo', '-d', 'pqgo'], start_period: '30s', start_interval: '1s'}
53+
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
5454
environment:
5555
'POSTGRES_DATABASE': 'pqgo'
5656
'POSTGRES_USER': 'pqgo'
@@ -62,7 +62,7 @@ services:
6262
entrypoint: '/init/entry.sh'
6363
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
6464
shm_size: '128mb'
65-
healthcheck: {test: ['CMD-SHELL', 'pg_isready', '-U', 'pqgo', '-d', 'pqgo'], start_period: '30s', start_interval: '1s'}
65+
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
6666
environment:
6767
'POSTGRES_DATABASE': 'pqgo'
6868
'POSTGRES_USER': 'pqgo'
@@ -74,7 +74,7 @@ services:
7474
entrypoint: '/init/entry.sh'
7575
volumes: ['./testdata/postgres:/init', './testdata/ssl:/ssl']
7676
shm_size: '128mb'
77-
healthcheck: {test: ['CMD-SHELL', 'pg_isready', '-U', 'pqgo', '-d', 'pqgo'], start_period: '30s', start_interval: '1s'}
77+
healthcheck: {test: ['CMD-SHELL', 'pg_isready -U pqgo -d pqgo'], start_period: '30s', start_interval: '1s'}
7878
environment:
7979
'POSTGRES_DATABASE': 'pqgo'
8080
'POSTGRES_USER': 'pqgo'

0 commit comments

Comments
 (0)