forked from OffchainLabs/nitro-testnode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
155 lines (144 loc) · 4.07 KB
/
docker-compose.yaml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.9"
services:
blockscout:
depends_on:
- postgres
- sequencer
image: offchainlabs/blockscout:v1.0.0-c8db5b1
platform: linux/amd64
restart: always
links:
- postgres:database
command:
- /bin/sh
- -c
- |
bin/blockscout eval "Elixir.Explorer.ReleaseTasks.create_and_migrate()"
node init/install.js postgres 5432
bin/blockscout start
extra_hosts:
- 'host.docker.internal:host-gateway'
env_file:
- ./blockscout/nitro.env
environment:
ETHEREUM_JSONRPC_VARIANT: 'geth'
ETHEREUM_JSONRPC_HTTP_URL: http://sequencer:8547/
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: "true"
DATABASE_URL: postgresql://postgres:@postgres:5432/blockscout
ECTO_USE_SSL: "false"
ports:
- "127.0.0.1:4000:4000"
postgres:
image: postgres:13.6
platform: linux/amd64
restart: always
environment:
POSTGRES_PASSWORD: ''
POSTGRES_USER: 'postgres'
POSTGRES_HOST_AUTH_METHOD: 'trust'
volumes:
- "postgres-data:/var/lib/postgresql/data"
ports:
- "127.0.0.1:7432:5432"
redis:
image: redis:6.2.6
platform: linux/amd64
ports:
- "127.0.0.1:6379:6379"
volumes:
- "./data/redis-data:/data"
geth:
image: chainflip-geth-base-image
platform: linux/amd64
ports:
- "127.0.0.1:8545:8545"
- "127.0.0.1:8551:8551"
- "127.0.0.1:8546:8546"
- "127.0.0.1:30303:30303"
volumes:
- "./data/l1data:/datadir"
- "./data/l1keystore:/keystore"
- "./data/config:/config"
sequencer:
image: nitro-node-dev-testnode
platform: linux/amd64
ports:
- "127.0.0.1:8547:8547"
- "127.0.0.1:8548:8548"
- "127.0.0.1:9642:9642"
volumes:
- "./data/seqdata:/home/user/.arbitrum/local/nitro"
- "./data/config:/config"
command: --conf.file /config/sequencer_config.json --node.feed.output.enable --node.feed.output.port 9642 --http.api net,web3,eth,txpool,debug --node.seq-coordinator.my-url ws://sequencer:8548 --graphql.enable --graphql.vhosts * --graphql.corsdomain *
depends_on:
- geth
- redis
staker-unsafe:
image: nitro-node-dev-testnode
platform: linux/amd64
ports:
- "127.0.0.1:8047:8547"
- "127.0.0.1:8048:8548"
volumes:
- "./data/unsafestaker-data:/home/user/.arbitrum/local/nitro"
- "./data/l1keystore:/home/user/l1keystore"
- "./data/config:/config"
command: --conf.file /config/unsafe_staker_config.json
depends_on:
- sequencer
- redis
poster:
image: nitro-node-dev-testnode
platform: linux/amd64
ports:
- "127.0.0.1:8147:8547"
- "127.0.0.1:8148:8548"
volumes:
- "./data/poster-data:/home/user/.arbitrum/local/nitro"
- "./data/l1keystore:/home/user/l1keystore"
- "./data/config:/config"
command: --conf.file /config/poster_config.json
depends_on:
- geth
- redis
validator:
image: nitro-node-dev-testnode
platform: linux/amd64
ports:
- "127.0.0.1:8247:8547"
- "127.0.0.1:8248:8548"
volumes:
- "./data/validator-data:/home/user/.arbitrum/local/nitro"
- "./data/l1keystore:/home/user/l1keystore"
- "./data/config:/config"
command: --conf.file /config/validator_config.json --http.port 8547 --http.api net,web3,arb,debug --ws.port 8548
depends_on:
- sequencer
scripts:
build: scripts/
volumes:
- "./data/l1keystore:/home/user/l1keystore"
- "./data/config:/config"
depends_on:
- redis
relay:
image: nitro-node-dev-testnode
platform: linux/amd64
ports:
- "127.0.0.1:9652:9652"
entrypoint: bin/relay
command: --node.feed.output.port 9652 --node.feed.input.url ws://sequencer:9652
tokenbridge:
depends_on:
- geth
- sequencer
build: tokenbridge/
environment:
- ARB_URL=http://sequencer:8547
- ETH_URL=http://geth:8545
volumes:
- "sdk-data:/workspace"
- /var/run/docker.sock:/var/run/docker.sock
volumes:
postgres-data:
sdk-data: