From 0cb0efbed8bb96128e81f79aabe38fa21dbbfa3c Mon Sep 17 00:00:00 2001 From: Simon Emanuel Schmid Date: Fri, 11 Jun 2021 15:00:23 +0200 Subject: [PATCH 1/2] Add docker-compose --- docker-compose.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..4171bbf1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,40 @@ +version: '3' +services: + graph-node: + image: graphprotocol/graph-node:v0.22.0 + ports: + - '8000:8000' + - '8001:8001' + - '8020:8020' + - '8030:8030' + - '8040:8040' + depends_on: + - ipfs + - postgres + environment: + postgres_host: postgres + postgres_user: graph-node + postgres_pass: let-me-in + postgres_db: graph-node + ipfs: 'ipfs:5001' + # Change next line if you want to connect to a different JSON-RPC endpoint + ethereum: 'mainnet:http://host.docker.internal:8545' + RUST_LOG: info # up until v0.22.0 + GRAPH_LOG: info + ipfs: + image: ipfs/go-ipfs:v0.4.23 + ports: + - '5001:5001' + volumes: + - ./data/ipfs:/data/ipfs + postgres: + image: postgres + ports: + - '5432:5432' + command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"] + environment: + POSTGRES_USER: graph-node + POSTGRES_PASSWORD: let-me-in + POSTGRES_DB: graph-node + volumes: + - ./data/postgres:/var/lib/postgresql/data From f1b2078f3c86a30aee79b094a8b9b627cf5a81fa Mon Sep 17 00:00:00 2001 From: Simon Emanuel Schmid Date: Wed, 16 Jun 2021 23:07:42 +0200 Subject: [PATCH 2/2] Remove RUST_LOG --- docker-compose.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4171bbf1..59d24987 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,7 +19,6 @@ services: ipfs: 'ipfs:5001' # Change next line if you want to connect to a different JSON-RPC endpoint ethereum: 'mainnet:http://host.docker.internal:8545' - RUST_LOG: info # up until v0.22.0 GRAPH_LOG: info ipfs: image: ipfs/go-ipfs:v0.4.23