forked from worldmobilegroup/aya-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 1.8 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
alice:
build: ./
command: >
/aya/target/release/aya-node --dev --tmp --alice --port 30333 --rpc-port 9944
--rpc-external
--rpc-methods Unsafe
--rpc-cors "http://example.com"
--rpc-max-connections 100
--rpc-rate-limit 20
--rpc-max-request-size 20
--rpc-max-response-size 50
--rpc-max-subscriptions-per-connection 500
--rpc-message-buffer-capacity-per-connection 50
--validator
--offchain-worker always
ports:
- "30333:30333"
- "9944:9944"
- "5555:5555"
networks:
- aya_network
environment:
- RUST_LOG=sc_rpc=trace,cardano_follower=info
bob:
build: ./
environment:
- NODE_KEY=${NODE_KEY}
- ALICE_IP=${ALICE_IP}
# - RUST_LOG=debug,sc_rpc=trace,cardano_follower=debug
command: >
/aya/target/release/aya-node --dev --tmp --bob --port 30334 --rpc-port 9946
--rpc-external
--rpc-methods unsafe
--rpc-cors "http://example.com"
--rpc-max-connections 100
--rpc-rate-limit 20
--rpc-max-request-size 20
--rpc-max-response-size 50
--rpc-max-subscriptions-per-connection 500
--rpc-message-buffer-capacity-per-connection 50
--validator --bootnodes /ip4/${ALICE_IP}/tcp/30333/p2p/${NODE_KEY}
--offchain-worker always
depends_on:
- alice
networks:
- aya_network
ports:
- "30334:30334"
- "9946:9946"
scrolls:
image: sylvaincormier/chain-follower:v0.2
command: ["/usr/bin/aya_chain_follower", "daemon", "--config", "/app/daemon_conf.toml"]
environment:
- RUST_LOG=info
volumes:
- ./daemon_conf.toml:/app/daemon_conf.toml
ports:
- "9615:9615"
networks:
- aya_network
networks:
aya_network:
driver: bridge