Last active
January 26, 2018 02:28
-
-
Save cimadai/6e11f999c13e7059447b2856119a0271 to your computer and use it in GitHub Desktop.
iroha example conf for single node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1d7e0a32ee0affeb4d22acd73c2c6fb6bd58e266c8c2ce4fa0ffe3dd6a253ffb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
407e57f50ca48969b08ba948171bb2435e035d82cec417e18e4a38f5fb113f83 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
node01: | |
image: cimadai/iroha:v1 | |
restart: always | |
ports: | |
- "51051:50051" | |
- "21000:20000" | |
environment: | |
NODE_NAME: node01 | |
depends_on: | |
- node01_redis | |
- node01_pg | |
volumes: | |
- ./test_data/node/block-store:/tmp/block_store/ | |
- ./test_data/node/iroha-status:/tmp/iroha-status | |
- ./test_data/node/conf:/opt/iroha/config | |
tty: true | |
cap_add: | |
- SYS_PTRACE | |
command: "./bin/startup.sh" | |
node01_redis: | |
image: redis:3.2.8 | |
restart: always | |
node01_pg: | |
image: postgres:9.5 | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
restart: always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"signatures": [], | |
"created_ts": 0, | |
"hash": "9c944ef030a39c4d835c8c3ec81c4a7c15c0ad0efcb29e9256f1ab6af4a00ff3", | |
"prev_hash": "0000000000000000000000000000000000000000000000000000000000000000", | |
"height": 1, | |
"txs_number": 1, | |
"merkle_root": "0000000000000000000000000000000000000000000000000000000000000000", | |
"transactions": [ | |
{ | |
"signatures": [], | |
"created_ts": 0, | |
"creator_account_id": "", | |
"tx_counter": 0, | |
"commands": [ | |
{ | |
"command_type": "AddPeer", | |
"address": "localhost:10001", | |
"peer_key": "292a8714694095edce6be799398ed5d6244cd7be37eb813106b217d850d261f2" | |
}, | |
{ | |
"command_type": "CreateRole", | |
"role_name": "admin", | |
"permissions": [ | |
"CanGetAllAccounts", | |
"CanGetAllAccountAssets", | |
"CanGetAllAccountTransactions", | |
"CanGetAllSignatories", | |
"CanGetAllAccountAssetsTransactions", | |
"CanGetRoles", | |
"CanReadAssets", | |
"CanAddPeer", | |
"CanCreateAccount", | |
"CanCreateDomain", | |
"CanRemoveSignatory", | |
"CanAddSignatory", | |
"CanSetQuorum", | |
"CanCreateRole", | |
"CanAppendRole" | |
] | |
}, | |
{ | |
"command_type": "CreateRole", | |
"role_name": "user", | |
"permissions": [ | |
"CanSetQuorum", | |
"CanAddSignatory", | |
"CanReceive", | |
"CanGetMySignatories", | |
"CanGrantCanRemoveSignatory", | |
"CanGetMyAccountAssetsTransactions", | |
"CanGetMyAccountAssets", | |
"CanGetMyAccount", | |
"CanGetMyAccountTransactions", | |
"CanRemoveSignatory", | |
"CanGrantCanAddSignatory", | |
"CanTransfer", | |
"CanGrantCanSetQuorum" | |
] | |
}, | |
{ | |
"command_type": "CreateRole", | |
"role_name": "money_creator", | |
"permissions": [ | |
"CanCreateAsset", | |
"CanAddAssetQuantity", | |
"CanReceive", | |
"CanTransfer" | |
] | |
}, | |
{ | |
"command_type": "CreateDomain", | |
"domain_id": "test.domain", | |
"user_default_role": "user" | |
}, | |
{ | |
"command_type": "CreateAsset", | |
"asset_name": "asset01", | |
"domain_id": "test.domain", | |
"precision": 19 | |
}, | |
{ | |
"command_type": "CreateAsset", | |
"asset_name": "asset02", | |
"domain_id": "test.domain", | |
"precision": 19 | |
}, | |
{ | |
"command_type": "CreateAccount", | |
"account_name": "admin", | |
"domain_id": "test.domain", | |
"pubkey": "407e57f50ca48969b08ba948171bb2435e035d82cec417e18e4a38f5fb113f83" | |
}, | |
{ | |
"command_type": "AppendRole", | |
"account_id": "[email protected]", | |
"role_name": "admin" | |
}, | |
{ | |
"command_type": "AppendRole", | |
"account_id": "[email protected]", | |
"role_name": "money_creator" | |
} | |
] | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8316fe25fda2bb3964ae756251b5f1fe010fafe56443978d524dc6485548be76 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
292a8714694095edce6be799398ed5d6244cd7be37eb813106b217d850d261f2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment