Add storage node attributes

Also fix indent for env vars.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-09-24 16:55:28 +03:00
parent a4cb92016f
commit 1d8e79c0e4

View file

@ -18,9 +18,10 @@ services:
stop_signal: SIGKILL stop_signal: SIGKILL
env_file: [ ".env", ".storage.env" ] env_file: [ ".env", ".storage.env" ]
environment: environment:
- NEOFS_NODE_KEY=/01.key - NEOFS_NODE_KEY=/01.key
- NEOFS_NODE_ADDRESS=s01.${LOCAL_DOMAIN}:8080 - NEOFS_NODE_ADDRESS=s01.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_ENDPOINT=s01.${LOCAL_DOMAIN}:8080 - NEOFS_GRPC_ENDPOINT=s01.${LOCAL_DOMAIN}:8080
- NEOFS_NODE_ATTRIBUTE_0=/Location:Europe/Country:Russia/City:Moscow
storage02: storage02:
image: ${NODE_IMAGE}:${NODE_VERSION} image: ${NODE_IMAGE}:${NODE_VERSION}
@ -38,9 +39,10 @@ services:
stop_signal: SIGKILL stop_signal: SIGKILL
env_file: [ ".env", ".storage.env" ] env_file: [ ".env", ".storage.env" ]
environment: environment:
- NEOFS_NODE_KEY=/02.key - NEOFS_NODE_KEY=/02.key
- NEOFS_NODE_ADDRESS=s02.${LOCAL_DOMAIN}:8080 - NEOFS_NODE_ADDRESS=s02.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_ENDPOINT=s02.${LOCAL_DOMAIN}:8080 - NEOFS_GRPC_ENDPOINT=s02.${LOCAL_DOMAIN}:8080
- NEOFS_NODE_ATTRIBUTE_0=/Location:Europe/Country:Russia/City:Saint-Petersburg
storage03: storage03:
image: ${NODE_IMAGE}:${NODE_VERSION} image: ${NODE_IMAGE}:${NODE_VERSION}
@ -58,9 +60,10 @@ services:
stop_signal: SIGKILL stop_signal: SIGKILL
env_file: [ ".env", ".storage.env" ] env_file: [ ".env", ".storage.env" ]
environment: environment:
- NEOFS_NODE_KEY=/03.key - NEOFS_NODE_KEY=/03.key
- NEOFS_NODE_ADDRESS=s03.${LOCAL_DOMAIN}:8080 - NEOFS_NODE_ADDRESS=s03.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_ENDPOINT=s03.${LOCAL_DOMAIN}:8080 - NEOFS_GRPC_ENDPOINT=s03.${LOCAL_DOMAIN}:8080
- NEOFS_NODE_ATTRIBUTE_0=/Location:Europe/Country:Sweden/City:Stockholm
storage04: storage04:
image: ${NODE_IMAGE}:${NODE_VERSION} image: ${NODE_IMAGE}:${NODE_VERSION}
@ -81,6 +84,7 @@ services:
- NEOFS_NODE_KEY=/04.key - NEOFS_NODE_KEY=/04.key
- NEOFS_NODE_ADDRESS=s04.${LOCAL_DOMAIN}:8080 - NEOFS_NODE_ADDRESS=s04.${LOCAL_DOMAIN}:8080
- NEOFS_GRPC_ENDPOINT=s04.${LOCAL_DOMAIN}:8080 - NEOFS_GRPC_ENDPOINT=s04.${LOCAL_DOMAIN}:8080
- NEOFS_NODE_ATTRIBUTE_0=/Location:Europe/Country:Finalnd/City:Helsinki
networks: networks:
storage_int: storage_int: