From 9645cf779337fca618c743afbaf04806f5324327 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 25 Nov 2022 12:32:20 +0300 Subject: [PATCH] [#241] rest: Provide common params with `.yml` file Signed-off-by: Pavel Karpy --- services/rest_gate/cfg/config.yml | 8 ++++++++ services/rest_gate/docker-compose.yml | 5 ++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 services/rest_gate/cfg/config.yml diff --git a/services/rest_gate/cfg/config.yml b/services/rest_gate/cfg/config.yml new file mode 100644 index 0000000..f733832 --- /dev/null +++ b/services/rest_gate/cfg/config.yml @@ -0,0 +1,8 @@ +server: + # The IP and port to listen on. + listen-address: 0.0.0.0:8090 + +# Wallet settings +wallet: + path: /wallet.json # Path to wallet + passphrase: one # Password to decrypt wallet diff --git a/services/rest_gate/docker-compose.yml b/services/rest_gate/docker-compose.yml index 478d25b..f5bac6b 100644 --- a/services/rest_gate/docker-compose.yml +++ b/services/rest_gate/docker-compose.yml @@ -15,12 +15,11 @@ services: volumes: - ./wallet.json:/wallet.json - ./../../vendor/hosts:/etc/hosts + - ./cfg:/etc/frostfs/rest stop_signal: SIGKILL env_file: [ ".env", ".int_test.env" ] + command: [ "frostfs-rest-gw", "--config", "/etc/frostfs/rest/config.yml" ] environment: - - REST_GW_WALLET_PATH=/wallet.json - - REST_GW_WALLET_PASSPHRASE=one - - REST_GW_SERVER_LISTEN_ADDRESS=0.0.0.0:8090 - REST_GW_POOL_PEERS_0_ADDRESS=s01.${LOCAL_DOMAIN}:8080 - REST_GW_POOL_PEERS_1_ADDRESS=s02.${LOCAL_DOMAIN}:8080 - REST_GW_POOL_PEERS_2_ADDRESS=s03.${LOCAL_DOMAIN}:8080