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 17, 2022
1 parent aa0b284 commit 356ec3b
Show file tree
Hide file tree
Showing 5 changed files with 91 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=NUUb82KR2JrVByHs2YSKgtK29gKnF5q6Vt
S3_GW_WALLET_PASSPHRASE=s3

S3_GW_TREE_SERVICE=localhost:8080

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

0 comments on commit 356ec3b

Please sign in to comment.