forked from TrueCloudLab/frostfs-dev-env
[#63] Use SIGTERM to stop Go services
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
0f6f2722c2
commit
19e5cec49f
4 changed files with 14 additions and 7 deletions
|
@ -13,7 +13,8 @@ services:
|
||||||
ir_int:
|
ir_int:
|
||||||
internet:
|
internet:
|
||||||
ipv4_address: ${IPV4_PREFIX}.61
|
ipv4_address: ${IPV4_PREFIX}.61
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
volumes:
|
volumes:
|
||||||
- ./az.json:/wallet.json
|
- ./az.json:/wallet.json
|
||||||
- ./az.key:/wallet01.key
|
- ./az.key:/wallet01.key
|
||||||
|
|
|
@ -16,7 +16,8 @@ services:
|
||||||
- ./wallet.json:/wallet.json
|
- ./wallet.json:/wallet.json
|
||||||
- ./../../vendor/hosts:/etc/hosts
|
- ./../../vendor/hosts:/etc/hosts
|
||||||
- ./cfg:/etc/frostfs/rest
|
- ./cfg:/etc/frostfs/rest
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".int_test.env" ]
|
env_file: [ ".env", ".int_test.env" ]
|
||||||
command: [ "frostfs-rest-gw", "--config", "/etc/frostfs/rest/config.yml" ]
|
command: [ "frostfs-rest-gw", "--config", "/etc/frostfs/rest/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -18,7 +18,8 @@ services:
|
||||||
- ./tls.crt:/tls.crt
|
- ./tls.crt:/tls.crt
|
||||||
- ./../../vendor/hosts:/etc/hosts
|
- ./../../vendor/hosts:/etc/hosts
|
||||||
- ./cfg:/etc/frostfs/s3
|
- ./cfg:/etc/frostfs/s3
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".s3.env", ".int_test.env" ]
|
env_file: [ ".env", ".s3.env", ".int_test.env" ]
|
||||||
command: [ "frostfs-s3-gw", "--config", "/etc/frostfs/s3/config.yml" ]
|
command: [ "frostfs-s3-gw", "--config", "/etc/frostfs/s3/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -24,7 +24,8 @@ services:
|
||||||
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
||||||
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
||||||
- ./cfg:/etc/frostfs/storage
|
- ./cfg:/etc/frostfs/storage
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
||||||
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
@ -64,7 +65,8 @@ services:
|
||||||
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
||||||
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
||||||
- ./cfg:/etc/frostfs/storage
|
- ./cfg:/etc/frostfs/storage
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
||||||
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
@ -104,7 +106,8 @@ services:
|
||||||
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
||||||
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
||||||
- ./cfg:/etc/frostfs/storage
|
- ./cfg:/etc/frostfs/storage
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
||||||
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
@ -145,7 +148,8 @@ services:
|
||||||
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
- ../nats/client-key.pem:/etc/frostfs-node/nats.tls.key
|
||||||
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
- ../nats/ca-cert.pem:/etc/frostfs-node/nats.ca.crt
|
||||||
- ./cfg:/etc/frostfs/storage
|
- ./cfg:/etc/frostfs/storage
|
||||||
stop_signal: SIGKILL
|
stop_signal: SIGTERM
|
||||||
|
stop_grace_period: 15s
|
||||||
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
env_file: [ ".env", ".storage.env", ".int_test.env" ]
|
||||||
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
command: [ "frostfs-node", "--config", "/etc/frostfs/storage/config.yml" ]
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue