-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (49 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
50 lines (49 loc) · 1.52 KB
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
services:
anvil:
image: ghcr.io/foundry-rs/foundry:v0.3.0
platform: linux/amd64
ports: ['8545:8545']
entrypoint:
[
'anvil',
'--fork-url',
'https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}',
'--host',
'0.0.0.0',
'--chain-id',
'1337',
'--hardfork',
'prague',
]
healthcheck:
test:
[
'CMD-SHELL',
'wget -q -O - http://0.0.0.0:8545 --post-data ''{"jsonrpc":"2.0","method":"eth_chainId","params":[],"id":1}'' --header=''Content-Type: application/json'' || exit 1',
]
interval: 2s
timeout: 5s
retries: 5
alto:
image: chnejohnson/alto:0.0.18
platform: linux/amd64
ports: ['4337:4337']
command: --config alto.config.json
volumes:
- ./alto.config.json:/app/alto.config.json
healthcheck:
test: ['CMD-SHELL', 'wget -q -O - http://0.0.0.0:4337/health || exit 1']
interval: 5s
timeout: 10s
retries: 10
start_period: 10s
depends_on:
anvil:
condition: service_healthy
health-check:
image: docker.io/library/hello-world
depends_on:
alto:
condition: service_healthy
anvil:
condition: service_healthy