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>
70 lines
1.5 KiB
YAML
70 lines
1.5 KiB
YAML
services:
|
|
graph-node:
|
|
image: cerc/graph-node:local
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
ipfs:
|
|
condition: service_healthy
|
|
lotus-node-1:
|
|
condition: service_healthy
|
|
extra_hosts:
|
|
- host.docker.internal:host-gateway
|
|
environment:
|
|
ipfs: ipfs:5001
|
|
postgres_host: db
|
|
postgres_port: 5432
|
|
postgres_user: graph-node
|
|
postgres_pass: password
|
|
postgres_db: graph-node
|
|
# TODO: Get endpoint from env
|
|
ethereum: 'lotus-fixturenet:http://lotus-node-1:1234/rpc/v1'
|
|
GRAPH_LOG: info
|
|
ports:
|
|
- "8000"
|
|
- "8001"
|
|
- "8020"
|
|
- "8030"
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-vz", "localhost", "8020"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 3s
|
|
ipfs:
|
|
image: ipfs/kubo:master-2023-02-20-714a968
|
|
volumes:
|
|
- ipfs-import:/import
|
|
- ipfs-data:/data/ipfs
|
|
ports:
|
|
- "8080"
|
|
- "4001"
|
|
- "5001"
|
|
db:
|
|
image: postgres:14-alpine
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_USER: "graph-node"
|
|
POSTGRES_DB: "graph-node"
|
|
POSTGRES_PASSWORD: "password"
|
|
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
|
command:
|
|
[
|
|
"postgres",
|
|
"-cshared_preload_libraries=pg_stat_statements"
|
|
]
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-v", "localhost", "5432"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 3s
|
|
ports:
|
|
- "5432"
|
|
|
|
volumes:
|
|
ipfs-import:
|
|
ipfs-data:
|
|
db-data:
|