forked from TrueCloudLab/frostfs-dev-env
Add HTTP Gate
Signed-off-by: Evgeniy Kulikov <kim@nspcc.ru>
This commit is contained in:
parent
9c455e1832
commit
389e0dd62b
7 changed files with 58 additions and 0 deletions
4
.env
4
.env
|
@ -16,3 +16,7 @@ IR_IMAGE=nspccdev/neofs-ir
|
|||
# NeoFS Storage nodes
|
||||
NODE_VERSION=0.12.1
|
||||
NODE_IMAGE=nspccdev/neofs-storage
|
||||
|
||||
# HTTP Gate
|
||||
HTTP_GW_VERSION=0.12.0-rc.3
|
||||
HTTP_GW_IMAGE=nspccdev/neofs-http-gate
|
||||
|
|
|
@ -5,3 +5,4 @@ chain
|
|||
morph_chain
|
||||
ir
|
||||
storage
|
||||
http_gate
|
||||
|
|
1
services/http_gate/.env
Symbolic link
1
services/http_gate/.env
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../.env
|
1
services/http_gate/.hosts
Normal file
1
services/http_gate/.hosts
Normal file
|
@ -0,0 +1 @@
|
|||
IPV4_PREFIX.81 http.LOCAL_DOMAIN
|
15
services/http_gate/.http.env
Normal file
15
services/http_gate/.http.env
Normal file
|
@ -0,0 +1,15 @@
|
|||
HTTP_GW_LISTEN_ADDRESS=0.0.0.0:8080
|
||||
|
||||
HTTP_GW_LOGGER_LEVEL=info
|
||||
|
||||
HTTP_GW_REBALANCE_TIMER=5m
|
||||
HTTP_GW_CONNECT_TIMEOUT=60s
|
||||
HTTP_GW_REQUEST_TIMEOUT=300s
|
||||
|
||||
HTTP_GW_KEEPALIVE_TIMEOUT=300s
|
||||
HTTP_GW_KEEPALIVE_TIME=120s
|
||||
HTTP_GW_KEEPALIVE_PERMIT_WITHOUT_STREAM=True
|
||||
|
||||
HTTP_GW_METRICS=False
|
||||
HTTP_GW_PPROF=False
|
||||
HTTP_GW_VERBOSE=false
|
35
services/http_gate/docker-compose.yml
Normal file
35
services/http_gate/docker-compose.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
|
||||
version: "2.4"
|
||||
services:
|
||||
http_gate:
|
||||
image: ${HTTP_GW_IMAGE}:${HTTP_GW_VERSION}
|
||||
domainname: ${LOCAL_DOMAIN}
|
||||
hostname: http_gate
|
||||
container_name: http_gate
|
||||
restart: on-failure
|
||||
networks:
|
||||
http_gate_int:
|
||||
internet:
|
||||
ipv4_address: ${IPV4_PREFIX}.81
|
||||
volumes:
|
||||
- ./user.key:/user.key
|
||||
- ./../../vendor/hosts:/etc/hosts
|
||||
stop_signal: SIGKILL
|
||||
env_file: [ ".env", ".http.env" ]
|
||||
environment:
|
||||
- HTTP_GW_KEY=/user.key
|
||||
- HTTP_GW_PEERS_0_ADDRESS=s01.${LOCAL_DOMAIN}:8080
|
||||
- HTTP_GW_PEERS_0_WEIGHT=0.2
|
||||
- HTTP_GW_PEERS_1_ADDRESS=s02.${LOCAL_DOMAIN}:8080
|
||||
- HTTP_GW_PEERS_1_WEIGHT=0.2
|
||||
- HTTP_GW_PEERS_2_ADDRESS=s03.${LOCAL_DOMAIN}:8080
|
||||
- HTTP_GW_PEERS_2_WEIGHT=0.2
|
||||
- HTTP_GW_PEERS_3_ADDRESS=s04.${LOCAL_DOMAIN}:8080
|
||||
- HTTP_GW_PEERS_3_WEIGHT=0.2
|
||||
|
||||
networks:
|
||||
http_gate_int:
|
||||
internet:
|
||||
external:
|
||||
name: basenet_internet
|
1
services/http_gate/user.key
Normal file
1
services/http_gate/user.key
Normal file
|
@ -0,0 +1 @@
|
|||
с╨─ЧдФ╕Я?вьэЁ╡²Оv─/l⌠║еы╩
|
Loading…
Reference in a new issue