-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
55 lines (52 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
services:
anvil:
image: ghcr.io/foundry-rs/foundry:nightly-c4a984fbf2c48b793c8cd53af84f56009dd1070c
ports: [ "8545:8545" ]
entrypoint: [ "anvil", "--host", "0.0.0.0", "--block-time", "0.1", "--silent"]
# Uncomment this if you want to use a fork
#entrypoint: [ "anvil", "--chain-id", "1", "--fork-url", "http://your_node:845", "--host", "0.0.0.0", "--block-time", "0.1", "--silent"]
platform: linux/amd64
healthcheck:
test: ["CMD-SHELL", "cast rpc web3_clientVersion | grep -c anvil > /dev/null "]
start_interval: 250ms
start_period: 10s
interval: 30s
timeout: 5s
retries: 50
mock-paymaster:
build:
context: ./mock-verifying-paymaster
dockerfile: Dockerfile
ports: [ "3000:3000" ]
environment:
- ALTO_RPC=http://alto:4337
- ANVIL_RPC=http://anvil:8545
depends_on:
anvil:
condition: service_healthy
contract-deployer:
condition: service_completed_successfully
alto:
build: https://github.com/pimlicolabs/alto.git
ports: [ "4337:4337" ]
environment:
- ANVIL_RPC=http://anvil:8545
depends_on:
anvil:
condition: service_healthy
contract-deployer:
condition: service_completed_successfully
volumes:
- ./mock-alto-bundler/alto-config.json:/app/alto-config.json
entrypoint: ["node", "src/lib/cli/alto.js", "run", "--config", "/app/alto-config.json"]
contract-deployer:
build:
context: ./mock-contract-deployer
dockerfile: Dockerfile
environment:
- ANVIL_RPC=http://anvil:8545
# Uncomment this if you want to use the forked version
#- SKIP_DEPLOYMENTS=true
depends_on:
anvil:
condition: service_healthy