2023-08-11 15:00:19 +00:00
|
|
|
services:
|
|
|
|
graph-node:
|
|
|
|
image: cerc/graph-node:local
|
2023-08-14 08:47:21 +00:00
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
ipfs:
|
|
|
|
condition: service_healthy
|
2023-08-30 10:35:16 +00:00
|
|
|
# Uncomment when running against fixturenet-lotus to wait for the Lotus node to come up
|
|
|
|
# lotus-node-1:
|
|
|
|
# condition: service_healthy
|
2023-08-14 08:47:21 +00:00
|
|
|
extra_hosts:
|
|
|
|
- host.docker.internal:host-gateway
|
2023-08-11 15:00:19 +00:00
|
|
|
environment:
|
|
|
|
ipfs: ipfs:5001
|
|
|
|
postgres_host: db
|
|
|
|
postgres_port: 5432
|
|
|
|
postgres_user: graph-node
|
|
|
|
postgres_pass: password
|
|
|
|
postgres_db: graph-node
|
2023-08-30 10:35:16 +00:00
|
|
|
ethereum: ${NETWORK:-filecoin}:${ETH_RPC_ENDPOINT:-https://archive.lotus.vdb.to/rpc/v1}
|
|
|
|
GRAPH_LOG: debug
|
2023-08-31 05:12:01 +00:00
|
|
|
ETHEREUM_REORG_THRESHOLD: 16
|
2023-08-11 15:00:19 +00:00
|
|
|
ports:
|
|
|
|
- "8000"
|
|
|
|
- "8001"
|
|
|
|
- "8020"
|
|
|
|
- "8030"
|
2023-08-14 08:47:21 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "8020"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 10
|
|
|
|
start_period: 3s
|
2023-08-11 15:00:19 +00:00
|
|
|
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"
|
2023-08-14 08:47:21 +00:00
|
|
|
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
|
|
|
|
command:
|
|
|
|
[
|
|
|
|
"postgres",
|
|
|
|
"-cshared_preload_libraries=pg_stat_statements"
|
|
|
|
]
|
2023-08-11 15:00:19 +00:00
|
|
|
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:
|