Skip to content

Commit 4bcdf13

Browse files
authored
Make the Postgres healthchecks more lenient (#824)
1 parent b5fd02c commit 4bcdf13

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docker-compose/docker-compose.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ services:
3333
- CODEINTEL_PGDATABASE=sg
3434
- CODEINTEL_PGSSLMODE=disable
3535

36-
# If you are not running code insights, please see:
36+
# If you are not running code insights, please see:
3737
# https://docs.sourcegraph.com/admin/install/docker-compose/operations#database-migrations for more information
3838
# for information on how to configure Sourcegraph migrations
3939
- CODEINSIGHTS_PGHOST=codeinsights-db
@@ -43,7 +43,7 @@ services:
4343
- CODEINSIGHTS_PGDATABASE=postgres
4444
- CODEINSIGHTS_PGSSLMODE=disable
4545
restart: "on-failure"
46-
networks:
46+
networks:
4747
- sourcegraph
4848
depends_on:
4949
pgsql:
@@ -496,7 +496,7 @@ services:
496496
# `cadvisor` requires root privileges in order to display provisioning metrics.
497497
# These metrics provide critical information to help you scale the Sourcegraph deployment.
498498
# If you would like to bring your own infrastructure monitoring & alerting solution,
499-
# you may want to remove the `cadvisor` container completely
499+
# you may want to remove the `cadvisor` container completely
500500
privileged: true
501501
volumes:
502502
- '/:/rootfs:ro'
@@ -560,7 +560,7 @@ services:
560560
interval: 10s
561561
timeout: 1s
562562
retries: 10
563-
start_period: 15s
563+
start_period: 1h
564564
volumes:
565565
- 'pgsql:/data/'
566566
- '../pgsql/conf:/conf/'
@@ -607,7 +607,7 @@ services:
607607
interval: 10s
608608
timeout: 1s
609609
retries: 10
610-
start_period: 15s
610+
start_period: 1h
611611
volumes:
612612
- 'codeintel-db:/data/'
613613
- '../codeintel-db/conf:/conf/'
@@ -659,7 +659,7 @@ services:
659659
interval: 10s
660660
timeout: 1s
661661
retries: 10
662-
start_period: 15s
662+
start_period: 1h
663663
volumes:
664664
- 'codeinsights-db:/var/lib/postgresql/data/'
665665
- '../codeinsights-db/conf:/conf/'

0 commit comments

Comments
 (0)