-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (60 loc) · 1.57 KB
/
docker-compose.yml
File metadata and controls
64 lines (60 loc) · 1.57 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: fhevm-host-contracts
services:
anvil-node:
container_name: anvil-node
image: ghcr.io/foundry-rs/foundry:stable
entrypoint:
- anvil
- --block-time
- "0.5"
- --host
- 0.0.0.0
- --port
- "8545"
- --chain-id
- "12345"
- --accounts
- "15"
- --mnemonic
- "adapt mosquito move limb mobile illegal tree voyage juice mosquito burger raise father hope layer"
ports:
- "8545:8545"
volumes:
- .:/anvil
fhevm-sc-deploy:
container_name: fhevm-sc-deploy
build:
context: ../
dockerfile: host-contracts/Dockerfile
env_file:
- ./.env
environment:
- HARDHAT_NETWORK=staging
- CHAIN_ID_GATEWAY=54321
- RPC_URL=http://anvil-node:8545
command:
- npx hardhat task:deployAllHostContracts
volumes:
- addresses-volume:/app/addresses
fhevm-sc-add-pausers:
container_name: fhevm-sc-add-pausers
build:
context: ../
dockerfile: host-contracts/Dockerfile
env_file:
- ./.env
environment:
- HARDHAT_NETWORK=staging
- CHAIN_ID_GATEWAY=54321
- RPC_URL=http://anvil-node:8545
command:
- npx hardhat task:addHostPausers --use-internal-proxy-address true
depends_on:
fhevm-sc-deploy:
condition: service_completed_successfully
# Addresses needs to be mounted even though we don't use them in the task because the PauserSet
# contract is compiled, and it imports these addresses.
volumes:
- addresses-volume:/app/addresses
volumes:
addresses-volume: