Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,29 @@ streamr-docker-dev start --wait
- The Data Union Server manages the state of the
- The Data Union Server will be retired when Data Unions 2.0 is launched in Q1 of 2021
- 1 x [ethereum-watcher](https://github.com/streamr-dev/streamr-ethereum-watcher)

- 1 x [Chainlink node](https://github.com/streamr-dev/network-contracts)
- accessible at http://localhost:6688, user:a@a.com, password:testpass
- 1 x [TheGraph node](https://github.com/streamr-dev/network-contracts)
- GraphQL queries at http://localhost:8000/subgraphs/name/githubname/subgraphname
- GUI to past GraphQL queries: http://192.168.0.8:8000/subgraphs/name/githubname/subgraphname/graphql
- An example query is:
```
{
streams {
id,
metadata,
permissions {
id,
user,
edit,
canDelete,
publish,
subscribed,
share,
}
}
}
```
### Supporting services
- 1 x MySQL instance with databases `core_dev` and `core_test`
- 1 x Redis instance
Expand All @@ -223,6 +245,9 @@ streamr-docker-dev start --wait
- 1 x [Ethereum Parity node ("mainchain")](https://github.com/streamr-dev/open-ethereum-poa)
- 1 x [Ethereum Parity node ("sidechain")](https://github.com/streamr-dev/open-ethereum-poa)
- 1 x nginx
- 1 x Postgres DB for TheGraph and Chainlink
- 1 x ipfs for TheGraph
- 1 x external adapter for ENSqueries from chainlink to mainchain

## Troubleshooting

Expand Down
2 changes: 2 additions & 0 deletions chainlink_config/.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
a@a.com
testpass
11 changes: 11 additions & 0 deletions chainlink_config/.env_streamr_sidechain
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ROOT=/chainlink
LOG_LEVEL=debug
ETH_CHAIN_ID=8997
MIN_OUTGOING_CONFIRMATIONS=2
LINK_CONTRACT_ADDRESS=0x3387F44140ea19100232873a5aAf9E46608c791E
CHAINLINK_TLS_PORT=0
SECURE_COOKIES=false
GAS_UPDATER_ENABLED=true
ALLOW_ORIGINS=*
ETH_URL=ws://streamr-dev-parity-sidechain-node0:8450
DATABASE_URL=postgresql://streamr:let-me-in@streamr-dev-postgres:5432/streamr?sslmode=disable
1 change: 1 addition & 0 deletions chainlink_config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/log.jsonl
1 change: 1 addition & 0 deletions chainlink_config/.password
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AugustinerQW123!"§
1 change: 1 addition & 0 deletions chainlink_config/secret
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rrFLy5P2HqF/LG6K+xrsNMqgZJqCIm8SYVIuAgU+WhY=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"7b5f1610920d5baf00d684929272213baf962efe","crypto":{"cipher":"aes-128-ctr","ciphertext":"85271a6da2f5310a3b7120d3a2401565b03b83fc8c40e3d6fac0e4343eef33cf","cipherparams":{"iv":"43e3915ee0e323a0b47e37ac17a63ccd"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"5c6f877db46bec876ca303abc4a1ba12bfbbc52903fb081ab1e92a4a3a14de6f"},"mac":"bd84013d0ba6dde0a848674ee2871ccd6061d571234f2e119b2230df56312e3e"},"id":"c90a93de-913a-42ba-830c-80761e4b2873","version":3}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"address":"1dcaf21e385bbfafa02b0cc936eb2df7da155e64","crypto":{"cipher":"aes-128-ctr","ciphertext":"a02212a07c826d75db11c82dbfe250a5d4e02a2b9c06eeb720c7794a9d739392","cipherparams":{"iv":"9e0dfb63c4a5ff5f9ba6e6e1af3b00bd"},"kdf":"scrypt","kdfparams":{"dklen":32,"n":262144,"p":1,"r":8,"salt":"87504cff6c33dec55616c2953bf8373494ab2e1e43235dfb33665bac4b1e221b"},"mac":"fb64389116c49254e91e647a464b8830edc6f0834d99d74fc4fb18ef1d22a50e"},"id":"8363bfd3-6d24-4af6-84f6-821fec3312bf","version":3}
104 changes: 104 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,107 @@ services:
- bridge-rabbitmq
- bridge-redis
- bridge-request
graph-node:
container_name: streamr-dev-thegraph-node
image: graphprotocol/graph-node
ports:
- '8000:8000'
- '8001:8001'
- '8020:8020'
- '8030:8030'
- '8040:8040'
depends_on:
- ipfs
- postgres
- parity-sidechain-node0
environment:
postgres_host: postgres
postgres_user: streamr
postgres_pass: let-me-in
postgres_db: streamr
ipfs: 'streamr-dev-ipfs:5001'
ethereum: 'xDai:http://streamr-dev-parity-sidechain-node0:8540'
RUST_LOG: info
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
graph-deploy-streamregistry-subgraph:
container_name: streamr-dev-graph-deploy-streamreg-subgraph
image: streamr/graph-deploy-streamregistry-subgraph:dev
depends_on:
- graph-node
volumes:
- data-graph-deploy:/firstrun
ipfs:
container_name: streamr-dev-ipfs
image: ipfs/go-ipfs:v0.4.23
ports:
- '5001:5001'
volumes:
- data-ipfs:/data/ipfs
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
postgres:
container_name: streamr-dev-postgres
image: postgres
ports:
- '5432:5432'
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: streamr
POSTGRES_PASSWORD: let-me-in
POSTGRES_DB: streamr
volumes:
- data-postgres:/var/lib/postgresql/data
- ./postgres_init_scripts:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
chainlink:
container_name: streamr-dev-chainlink-node
image: smartcontract/chainlink:0.10.5
ports:
- '6688:6688'
command: ["local", "n", "-p", "/chainlink/.password", "-a", "/chainlink/.api"]
env_file:
- ./chainlink_config/.env_streamr_sidechain
volumes:
- ./chainlink_config:/chainlink
user: ${CURRENT_UID}
depends_on:
- parity-sidechain-node0
- postgres
- chainlink-external-adapter
deploy:
restart_policy:
condition: on-failure
delay: 3s
max_attempts: 5
window: 60s
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60
chainlink-external-adapter:
container_name: streamr-dev-chainlink-adapter
image: streamr/chainlink-external-adapter:dev
ports:
- 6691:8080
depends_on:
- parity-node0
healthcheck:
test: ["CMD", "echo"] # TODO: health check
interval: 10s
timeout: 10s
retries: 60

networks:
net-db-bridge-request:
Expand Down Expand Up @@ -426,3 +527,6 @@ volumes:
data-parity-node0:
data-parity-sidechain-node0:
data-ethereum-watcher:
data-ipfs:
data-postgres:
data-graph-deploy:
Loading