Skip to content

Commit b48392b

Browse files
authored
Add 'stop_grace_period to database services (#477)
This gives Postgres more time to gracefully shutdown
1 parent dda8bd6 commit b48392b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docker-compose/docker-compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ services:
524524
networks:
525525
- sourcegraph
526526
restart: always
527+
stop_grace_period: 120s
527528

528529
# Description: PostgreSQL database for code intelligence data.
529530
#
@@ -548,6 +549,7 @@ services:
548549
networks:
549550
- sourcegraph
550551
restart: always
552+
stop_grace_period: 120s
551553

552554
# Description: TimescaleDB time-series database for code insights data.
553555
#
@@ -573,6 +575,7 @@ services:
573575
networks:
574576
- sourcegraph
575577
restart: always
578+
stop_grace_period: 120s
576579

577580
# Description: MinIO for storing LSIF uploads.
578581
#

0 commit comments

Comments
 (0)