- Copy and paste the
docker-compose.hardhat.yaml
in the root of your Cartesi Dapp project - Define the custom network env file, also at the root. These are the keys you might need to change:
- MNEMONIC the one used there is the default for Hardhat local testnet
- RPC_URL host.docker.internal is for your local computer, e.g.: if your were running anvil/hardhat node there
- CHAIN_ID is the chain id of the target network
- Run the following cmd:
docker compose -f docker-compose.hardhat.yaml up
- Done! You have new deployment files under the folder "./deployments/custom"