From 19e5cec49fdd5fbf244ee234b5bc8cdb81873964 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 20 Feb 2024 15:47:55 +0300 Subject: [PATCH] [#63] Use SIGTERM to stop Go services Signed-off-by: Evgenii Stratonikov --- services/ir/docker-compose.yml | 3 ++- services/rest_gate/docker-compose.yml | 3 ++- services/s3_gate/docker-compose.yml | 3 ++- services/storage/docker-compose.yml | 12 ++++++++---- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/services/ir/docker-compose.yml b/services/ir/docker-compose.yml index 77ec50d..0f8e0f9 100644 --- a/services/ir/docker-compose.yml +++ b/services/ir/docker-compose.yml @@ -13,7 +13,8 @@ services: ir_int: internet: ipv4_address: ${IPV4_PREFIX}.61 - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s volumes: - ./az.json:/wallet.json - ./az.key:/wallet01.key diff --git a/services/rest_gate/docker-compose.yml b/services/rest_gate/docker-compose.yml index f5bac6b..ee1ab5e 100644 --- a/services/rest_gate/docker-compose.yml +++ b/services/rest_gate/docker-compose.yml @@ -16,7 +16,8 @@ services: - ./wallet.json:/wallet.json - ./../../vendor/hosts:/etc/hosts - ./cfg:/etc/frostfs/rest - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".int_test.env" ] command: [ "frostfs-rest-gw", "--config", "/etc/frostfs/rest/config.yml" ] environment: diff --git a/services/s3_gate/docker-compose.yml b/services/s3_gate/docker-compose.yml index 1445480..d1b7601 100644 --- a/services/s3_gate/docker-compose.yml +++ b/services/s3_gate/docker-compose.yml @@ -18,7 +18,8 @@ services: - ./tls.crt:/tls.crt - ./../../vendor/hosts:/etc/hosts - ./cfg:/etc/frostfs/s3 - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".s3.env", ".int_test.env" ] command: [ "frostfs-s3-gw", "--config", "/etc/frostfs/s3/config.yml" ] environment: diff --git a/services/storage/docker-compose.yml b/services/storage/docker-compose.yml index b32ba21..1aabc5e 100644 --- a/services/storage/docker-compose.yml +++ b/services/storage/docker-compose.yml @@ -24,7 +24,8 @@ services: - ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key - ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt - ./cfg:/etc/frostfs/storage - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".storage.env", ".int_test.env" ] command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ] environment: @@ -64,7 +65,8 @@ services: - ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key - ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt - ./cfg:/etc/frostfs/storage - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".storage.env", ".int_test.env" ] command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ] environment: @@ -104,7 +106,8 @@ services: - ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key - ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt - ./cfg:/etc/frostfs/storage - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".storage.env", ".int_test.env" ] command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ] environment: @@ -145,7 +148,8 @@ services: - ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key - ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt - ./cfg:/etc/frostfs/storage - stop_signal: SIGKILL + stop_signal: SIGTERM + stop_grace_period: 15s env_file: [ ".env", ".storage.env", ".int_test.env" ] command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ] environment: