forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
143 lines (142 loc) · 4.21 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
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
version: '3.2'
services:
create-beacon-chain-genesis:
image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl:HEAD-c6801d"
command:
- testnet
- generate-genesis
- --fork=deneb
- --num-validators=64
- --genesis-time-delay=5
- --output-ssz=/consensus/genesis.ssz
- --chain-config-file=/prysm/config.yml
- --geth-genesis-json-in=/geth/standard-dev.json
- --geth-genesis-json-out=/execution/genesis.json
volumes:
- ./docker/geth:/geth/:ro
- ./docker/prysm:/prysm/:ro
- ./volumes/geth:/execution
- ./volumes/prysm:/consensus
geth-genesis:
image: "ethereum/client-go:v1.13.5"
command: --datadir=/execution init /execution/genesis.json
volumes:
- ./volumes/geth:/execution
depends_on:
create-beacon-chain-genesis:
condition: service_completed_successfully
geth:
image: "ethereum/client-go:v1.13.5"
ports:
- 8551:8551
- 8545:8545
- 8546:8546
volumes:
- ./volumes/geth:/var/lib/geth/data
- ./docker/geth/:/geth/:ro
command:
- --networkid=9
- --datadir=/var/lib/geth/data
- --http
- --http.api=engine,eth,web3,personal,net,debug
- --http.addr=0.0.0.0
- --http.corsdomain=*
- --http.vhosts=*
- --ws
- --ws.addr=0.0.0.0
- --ws.port=8546
- --ws.origins=*
- --nodiscover
- --authrpc.addr=0.0.0.0
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/var/lib/geth/data/jwtsecret
- --allow-insecure-unlock
- --unlock=0x8a91dc2d28b689474298d91899f0c1baf62cb85b
- --password=/var/lib/geth/data/password.sec
- --syncmode=full
depends_on:
beacon:
condition: service_started
geth-genesis:
condition: service_completed_successfully
beacon:
image: "gcr.io/prysmaticlabs/prysm/beacon-chain:HEAD-c6801d"
command:
- --datadir=/consensus/beacon/
- --min-sync-peers=0
- --genesis-state=/consensus/genesis.ssz
- --bootstrap-node=
- --interop-eth1data-votes
- --chain-config-file=/consensus/config.yml
- --contract-deployment-block=0
- --chain-id=9
- --rpc-host=0.0.0.0
- --grpc-gateway-host=0.0.0.0
- --execution-endpoint=http://geth:8551
- --accept-terms-of-use
- --jwt-secret=/execution/jwtsecret
- --suggested-fee-recipient=0x8a91dc2d28b689474298d91899f0c1baf62cb85b
- --minimum-peers-per-subnet=0
- --enable-debug-rpc-endpoints
ports:
- 4000:4000
- 3500:3500
- 8080:8080
- 6060:6060
- 9090:9090
volumes:
- ./volumes/prysm:/consensus
- ./volumes/geth:/execution
depends_on:
create-beacon-chain-genesis:
condition: service_completed_successfully
validator:
image: "gcr.io/prysmaticlabs/prysm/validator:HEAD-c6801d"
command:
- --beacon-rpc-provider=beacon:4000
- --datadir=/consensus/validatordata
- --accept-terms-of-use
- --interop-num-validators=64
- --interop-start-index=0
- --chain-config-file=/consensus/config.yml
depends_on:
beacon:
condition: service_started
volumes:
- ./volumes/prysm:/consensus
postgres:
image: "postgres:14"
ports:
- 127.0.0.1:5432:5432
volumes:
- type: bind
source: ./volumes/postgres
target: /var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
# This is specific to runner
zk:
image: "matterlabs/zk-environment:latest2.0-lightweight"
security_opt:
- seccomp:unconfined
command: tail -f /dev/null
volumes:
- .:/usr/src/zksync
- /usr/src/cache:/usr/src/cache
- /var/run/docker.sock:/var/run/docker.sock
- ./hardhat-nodejs:/root/.cache/hardhat-nodejs
environment:
- CACHE_DIR=/usr/src/cache
- SCCACHE_CACHE_SIZE=50g
- SCCACHE_GCS_BUCKET=matterlabs-infra-sccache-storage
- SCCACHE_GCS_SERVICE_ACCOUNT=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com
- SCCACHE_ERROR_LOG=/tmp/sccache_log.txt
- SCCACHE_GCS_RW_MODE=READ_WRITE
- CI=1
- GITHUB_WORKSPACE=$GITHUB_WORKSPACE
env_file:
- ./.env
extra_hosts:
- "host:host-gateway"
profiles:
- runner