docker: increase stop_grace_period to 1 minute

Geth data can be corrupted when Docker sends SIGKILL after 10s.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-10-24 22:10:13 +02:00
parent 4583821179
commit 5504373808
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ geth_cont_tag: 'v1.10.25'
geth_cont_image: 'ethereum/client-go:{{ geth_cont_tag }}' geth_cont_image: 'ethereum/client-go:{{ geth_cont_tag }}'
geth_cont_name: '{{ geth_service_name }}-node' geth_cont_name: '{{ geth_service_name }}-node'
geth_cont_vol: '{{ geth_service_path }}/node' geth_cont_vol: '{{ geth_service_path }}/node'
geth_cont_stop_grace_period: '1m'
geth_enode_file: '{{ geth_cont_vol }}/keys/enode' geth_enode_file: '{{ geth_cont_vol }}/keys/enode'
geth_sync_check_script: '/usr/local/bin/check_sync_{{ geth_cont_name | replace("-", "_") }}.sh' geth_sync_check_script: '/usr/local/bin/check_sync_{{ geth_cont_name | replace("-", "_") }}.sh'

View File

@ -6,6 +6,7 @@ services:
image: '{{ geth_cont_image }}' image: '{{ geth_cont_image }}'
user: root user: root
restart: 'always' restart: 'always'
stop_grace_period: '{{ geth_cont_stop_grace_period }}'
deploy: deploy:
resources: resources:
limits: limits: