forked from cartesi/rollups-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-testnet.yml
46 lines (42 loc) · 1.21 KB
/
deploy-testnet.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
version: "3.9"
services:
machine:
image: cartesi/dapp:${DAPP_NAME:?undefined DAPP_NAME}-devel-machine
command: xxd -c 256 -p latest/hash; sleep 3
volumes:
- machine:/var/opt/cartesi/machine-snapshots
authority-deployer:
image: cartesi/rollups-hardhat:1.0.0
command:
[
"deploy",
"--tags",
"Authority",
"--network",
"${NETWORK:?undefined NETWORK}",
"--export",
"/home/node/rollups.json",
]
volumes:
- ./deployments/${NETWORK:?undefined NETWORK}:/home/node
environment:
- MNEMONIC=${MNEMONIC:?undefined MNEMONIC}
- RPC_URL=${RPC_URL:?undefined RPC_URL}
dapp-deployer:
build: ./build/testnet-dapp-deployer
depends_on:
machine:
condition: service_started
authority-deployer:
condition: service_completed_successfully
volumes:
- machine:/var/opt/cartesi/machine-snapshots:ro
- ./deployments:/deployments
- ./build:/build
environment:
- MNEMONIC=${MNEMONIC:?undefined MNEMONIC}
- NETWORK=${NETWORK:?undefined NETWORK}
- RPC_URL=${RPC_URL:?undefined RPC_URL}
- DAPP_NAME=${DAPP_NAME:?undefined DAPP_NAME}
volumes:
machine: {}