forked from ethereum-optimism/optimism
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
69 lines (57 loc) · 1.72 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
version: "3"
services:
# Look at packages/rollup-full-node/README.md for info on configuration
rollup-full-node:
volumes:
- full-node-data:/mnt/full-node:rw
- l1-node-data:/mnt/l1-node:rw
- l2-node-data:/mnt/l2-node:rw
build:
context: .
dockerfile: Dockerfile
ports:
- 8545:8545
environment:
- IS_TRANSACTION_NODE=1
- CLEAR_DATA_KEY=35
- STARTUP_WAIT_TIMEOUT=30
- OPCODE_WHITELIST_MASK
- LOCAL_L1_NODE_PORT
- LOCAL_L1_NODE_PERSISTENT_DB_PATH=/mnt/l1-node
- L1_NODE_INFURA_NETWORK
- L1_NODE_INFURA_PROJECT_ID
- L1_NODE_WEB3_URL
- L1_SEQUENCER_PRIVATE_KEY
- L1_SEQUENCER_MNEMONIC
- L1_EARLIEST_BLOCK
- L1_TO_L2_TRANSACTION_PASSER_CONTRACT_ADDRESS
- L2_TO_L1_MESSAGE_RECEIVER_CONTRACT_ADDRESS
- FINALITY_DELAY_IN_BLOCKS
- L2_RPC_SERVER_HOST
- L2_RPC_SERVER_PORT=8545
- L2_RPC_SERVER_PERSISTENT_DB_PATH=/mnt/full-node/level
- L2_WALLET_PRIVATE_KEY=0x29f3edee0ad3abf8e2699402e0e28cd6492c9be7eaab00d732a791c33552f797
- L2_NODE_WEB3_URL=http://geth_l2:9545/
# - LOCAL_L2_NODE_PERSISTENT_DB_PATH=/mnt/l2-node/
# This service is optional -- the rollup-full-node can be configured to run its own ganache instance.
# Geth is more performant, but that may not matter for your use case.
geth_l2:
volumes:
- l2-node-data:/mnt/l2-node/l2:rw
build:
context: docker/geth
dockerfile: Dockerfile
environment:
- CLEAR_DATA_KEY=35
- VOLUME_PATH=/mnt/l2-node/l2
- HOSTNAME=geth_l2
- PORT=9545
- NETWORK_ID=108
expose:
- "9545"
ports:
- 9545:9545
volumes:
full-node-data:
l1-node-data:
l2-node-data: