forked from cerc-io/stack-orchestrator
ddaddd2a8c
* Add a sushiswap-graph stack * Fix shared volume name in fixturenet-lotus * Export Lotus miner node multiaddr after initialization * Add deployment scripts for sushiswap contracts * Skip contracts deployment if already exists * Rename stack to sushiswap-subgraph * Fix postgres and use Lotus fixturenet in graph-node stack * Add sushiswap v3 subgraph stack * Fixes to deploy sushiswap subgraph to graph-node * Add graph-node container in sushiswap subgraph stack --------- Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
version: '3.2'
|
|
|
|
services:
|
|
# Deploys the core (UniswapV3Factory) contract
|
|
sushiswap-v3-core:
|
|
image: cerc/sushiswap-v3-core:local
|
|
restart: on-failure
|
|
env_file:
|
|
# Defaults
|
|
- ../config/contract-sushiswap/deployment-params.env
|
|
environment:
|
|
# Overrides
|
|
ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
|
CHAIN_ID: ${CHAIN_ID}
|
|
ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
|
DEPLOY: ${DEPLOY}
|
|
volumes:
|
|
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
|
- ../config/contract-sushiswap/deploy-core-contracts.sh:/app/deploy-core-contracts.sh
|
|
- sushiswap_core_deployment:/app/deployments/docker
|
|
command: ["bash", "-c", "/app/deploy-core-contracts.sh && tail -f"]
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
# Deploys the periphery (NFPM, token, etc.) contracts
|
|
sushiswap-v3-periphery:
|
|
image: cerc/sushiswap-v3-periphery:local
|
|
restart: on-failure
|
|
env_file:
|
|
# Defaults
|
|
- ../config/contract-sushiswap/deployment-params.env
|
|
environment:
|
|
# Overrides
|
|
ETH_RPC_ENDPOINT: ${ETH_RPC_ENDPOINT}
|
|
CHAIN_ID: ${CHAIN_ID}
|
|
ACCOUNT_PRIVATE_KEY: ${ACCOUNT_PRIVATE_KEY}
|
|
DEPLOY: ${DEPLOY}
|
|
volumes:
|
|
- ../config/network/wait-for-it.sh:/app/wait-for-it.sh
|
|
- ../config/contract-sushiswap/deploy-periphery-contracts.sh:/app/deploy-periphery-contracts.sh
|
|
- sushiswap_core_deployment:/app/core-deployments/docker
|
|
- sushiswap_periphery_deployment:/app/deployments/docker
|
|
command: ["bash", "-c", "/app/deploy-periphery-contracts.sh && tail -f"]
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
volumes:
|
|
sushiswap_core_deployment:
|
|
sushiswap_periphery_deployment:
|