Skip to content

Commit

Permalink
[#xxx] Add NeoFS S3 gateway image
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Lyubich <[email protected]>
  • Loading branch information
cthulhu-rider committed Nov 9, 2022
1 parent aa0b284 commit 997c62e
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ NEOGO_VERSION=0.99.3
AIO_VERSION=0.34.0
HTTPGW_VERSION=0.24.0
RESTGW_VERSION=0.5.0
S3GW_VERSION=0.25.0
20 changes: 20 additions & 0 deletions docker-compose.cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,26 @@ services:
depends_on:
- http_gw

s3_gw:
image: nspccdev/neofs-s3-gw:${S3GW_VERSION}
domainname: neofs
hostname: s3_gw
container_name: s3_gw
restart: on-failure
stop_signal: SIGKILL
env_file: [ "./s3/s3.env" ]
environment:
- S3_GW_LISTEN_ADDRESS=:9000
- S3_GW_PEERS_0_ADDRESS=sn:8080
- S3_GW_RPC_ENDPOINT=http://morph:30333
- S3_GW_TREE_SERVICE=sn:8080
volumes:
- ./s3/wallet.json:/config/wallet.json
ports:
- "9000:9000" # S3 Gateway endpoint
depends_on:
- sn

volumes:
data:
cache:
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,20 @@ services:
depends_on:
- http_gw

s3_gw:
image: nspccdev/neofs-s3-gw:${S3GW_VERSION}
domainname: neofs
hostname: s3_gw
container_name: s3_gw
restart: on-failure
network_mode: host
volumes:
- ./s3/wallet.json:/config/wallet.json
stop_signal: SIGKILL
env_file: [ "./s3/s3.env" ]
depends_on:
- sn

volumes:
data:
cache:
24 changes: 24 additions & 0 deletions s3/s3.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
S3_GW_LISTEN_ADDRESS=localhost:9000
S3_GW_RPC_ENDPOINT=http://localhost:30333

S3_GW_LOGGER_LEVEL=debug

S3_GW_REBALANCE_INTERVAL=5m
S3_GW_CONNECT_TIMEOUT=1m
S3_GW_HEALTHCHECK_TIMEOUT=5m

S3_GW_RESOLVE_ORDER=nns dns

S3_GW_DEFAULT_POLICY="REP 1"

S3_GW_PPROF_ENABLED=false
S3_GW_PROMETHEUS_ENABLED=false

S3_GW_WALLET_PATH=/config/wallet.json
S3_GW_WALLET_ADDRESS=NPFCqWHfi9ixCJRu7DABRbVfXRbkSEr9Vo
S3_GW_WALLET_PASSPHRASE=one

S3_GW_TREE_SERVICE=localhost:8080

S3_GW_PEERS_0_ADDRESS=localhost:8080
S3_GW_PEERS_0_PRIORITY=1
30 changes: 30 additions & 0 deletions s3/wallet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": "3.0",
"accounts": [
{
"address": "NPFCqWHfi9ixCJRu7DABRbVfXRbkSEr9Vo",
"key": "6PYTAGjdaeicUDPqGv9mmgwb9kTwimWJJmmfNqJSDGH9qM79zSRcL9oHiB",
"label": "S3 Gateway",
"contract": {
"script": "DCECcuPzZCZ2VyDsm2jKEOMnU6xEWO2bF1dvOvBWTDFYB1ZBVuezJw==",
"parameters": [
{
"name": "parameter0",
"type": "Signature"
}
],
"deployed": false
},
"lock": false,
"isDefault": false
}
],
"scrypt": {
"n": 16384,
"r": 8,
"p": 8
},
"extra": {
"Tokens": null
}
}

0 comments on commit 997c62e

Please sign in to comment.