2024-07-17 09:29:46 +00:00
|
|
|
name: nitro-contracts
|
|
|
|
|
|
|
|
services:
|
|
|
|
# Optionally deploys the Nitro contracts
|
|
|
|
nitro-contracts:
|
2024-07-23 06:40:19 +00:00
|
|
|
image: cerc/nitro-client:local
|
2024-07-19 05:27:46 +00:00
|
|
|
restart: on-failure
|
2024-07-17 09:29:46 +00:00
|
|
|
environment:
|
|
|
|
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
|
2024-07-23 06:40:19 +00:00
|
|
|
GETH_URL: ${GETH_URL}
|
|
|
|
OPTIMISM_URL: ${OPTIMISM_URL}
|
|
|
|
GETH_CHAIN_ID: ${GETH_CHAIN_ID:-1212}
|
|
|
|
OPTIMISM_CHAIN_ID: ${OPTIMISM_CHAIN_ID:-42069}
|
|
|
|
GETH_DEPLOYER_PK: ${GETH_DEPLOYER_PK}
|
|
|
|
OPTIMISM_DEPLOYER_PK: ${GETH_DEPLOYER_PK}
|
|
|
|
TOKEN_NAME: ${TOKEN_NAME}
|
|
|
|
TOKEN_SYMBOL: ${TOKEN_SYMBOL}
|
|
|
|
INITIAL_TOKEN_SUPPLY: ${INITIAL_TOKEN_SUPPLY}
|
|
|
|
DISABLE_DETERMINISTIC_DEPLOYMENT: ${DISABLE_DETERMINISTIC_DEPLOYMENT:-true}
|
2024-07-17 09:29:46 +00:00
|
|
|
volumes:
|
2024-07-19 05:27:46 +00:00
|
|
|
- nitro_deployment:/app/deployment
|
2024-07-18 11:48:24 +00:00
|
|
|
- ../config/nitro-contracts/deploy.sh:/app/deploy.sh
|
2024-07-17 09:29:46 +00:00
|
|
|
command: ["bash", "-c", "/app/deploy.sh"]
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
2024-07-19 05:27:46 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
nitro_deployment:
|