Skip to content

Commit

Permalink
fix: gracefully shutdown cardano-db-sync
Browse files Browse the repository at this point in the history
- cardano-db-sync ignores SIGTERM, which is the default signal sent when stopping Docker containers
- Ogmios' `cardano-node-ogmios` sets this within the Dockerfile
https://github.com/CardanoSolutions/ogmios/blob/c32341e56ccbeb1cf1e803d4607699668a1e2cc2/Dockerfile#L73
  • Loading branch information
rhyslbw committed Jul 6, 2022
1 parent d45e484 commit 2f02e56
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ services:
- db-sync-data:/var/lib/cexplorer
- node-ipc:/node-ipc
restart: on-failure
stop_signal: SIGINT
logging:
driver: "json-file"
options:
Expand Down

0 comments on commit 2f02e56

Please sign in to comment.