cartesi-p2p-wallet/deploy-testnet.yml

47 lines
1.2 KiB
YAML

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: {}