From 6800a42e99a1530108542849a3446d9a021d3c6a Mon Sep 17 00:00:00 2001 From: Will Meister Date: Thu, 30 Apr 2020 17:46:04 -0500 Subject: [PATCH] updating config so The Graph points directly at the tx node --- aws/synthetix/prod/web/docker-compose.yml | 4 +- aws/synthetix/uat/web/docker-compose.yml | 4 +- docker-compose.yml | 56 +++++++++++++++++++++++ 3 files changed, 60 insertions(+), 4 deletions(-) diff --git a/aws/synthetix/prod/web/docker-compose.yml b/aws/synthetix/prod/web/docker-compose.yml index 46aaf23588244..923d83832c556 100644 --- a/aws/synthetix/prod/web/docker-compose.yml +++ b/aws/synthetix/prod/web/docker-compose.yml @@ -82,10 +82,10 @@ services: postgres_pass: let-me-in postgres_db: graph-node ipfs: '0.0.0.0:5001' - ethereum: 'ovm:http://0.0.0.0:8545' + ethereum: 'ovm:http://0.0.0.0:8546' RUST_LOG: info STARTUP_WAIT_TIMEOUT: 30 - OVM_URL_WITH_PORT: 'http://0.0.0.0:8545' + OVM_URL_WITH_PORT: 'http://0.0.0.0:8546' volumes: - postgres-data:/data/postgres - ipfs-data:/data/ipfs diff --git a/aws/synthetix/uat/web/docker-compose.yml b/aws/synthetix/uat/web/docker-compose.yml index 298853271b159..4dd1b81005700 100644 --- a/aws/synthetix/uat/web/docker-compose.yml +++ b/aws/synthetix/uat/web/docker-compose.yml @@ -82,10 +82,10 @@ services: postgres_pass: let-me-in postgres_db: graph-node ipfs: '0.0.0.0:5001' - ethereum: 'ovm:http://0.0.0.0:8545' + ethereum: 'ovm:http://0.0.0.0:8546' RUST_LOG: info STARTUP_WAIT_TIMEOUT: 30 - OVM_URL_WITH_PORT: 'http://0.0.0.0:8545' + OVM_URL_WITH_PORT: 'http://0.0.0.0:8546' volumes: - postgres-data:/data/postgres - ipfs-data:/data/ipfs diff --git a/docker-compose.yml b/docker-compose.yml index c89dd8714a910..19f7f871e471a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -46,6 +46,9 @@ services: - L2_RPC_SERVER_PORT=8545 - TRANSACTION_NODE_URL=http://rollup-full-node:8546 - READ_ONLY_NODE_URL=http://read-only-node:8547 + - REQUEST_LIMIT_PERIOD_MILLIS=1000 + - MAX_NON_TRANSACTION_REQUESTS_PER_UNIT_TIME=10 + - MAX_TRANSACTIONS_PER_UNIT_TIME=10 read-only-node: image: optimism-monorepo_rollup-full-node:latest @@ -77,7 +80,60 @@ services: ports: - 9545:9545 + graph-node: + build: + context: docker/the-graph + dockerfile: Dockerfile + ports: + - '8000:8000' + - '8001:8001' + - '8020:8020' + - '8030:8030' + - '8040:8040' + environment: + postgres_host: postgres:5432 + postgres_user: graph-node + postgres_pass: let-me-in + postgres_db: graph-node + ipfs: 'ipfs:5001' + ethereum: 'ovm:http://router:8545' + RUST_LOG: info + STARTUP_WAIT_TIMEOUT: 30 + OVM_URL_WITH_PORT: 'http://router:8545' + volumes: + - postgres-data:/data/postgres + - ipfs-data:/data/ipfs + + ipfs: + image: ipfs/go-ipfs:v0.4.23 + ports: + - '5001:5001' + volumes: + - ipfs-data:/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: + - postgres-data:/var/lib/postgresql/data + volumes: full-node-data: l1-node-data: l2-node-data: + postgres-data: + ipfs-data: + + + + + + + +