From a859fcb5e8781d98c1fdd563d91a14ed76823a82 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 6 May 2022 01:57:37 +0000 Subject: [PATCH] docker-compose --- .dockerignore | 11 ++--- docker-compose.common.yml | 5 +++ docker-compose.yml | 90 +++++++++++++++++++++++++++++++++------ 3 files changed, 89 insertions(+), 17 deletions(-) create mode 100644 docker-compose.common.yml diff --git a/.dockerignore b/.dockerignore index 1eb584f4..d1247e40 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,7 @@ +config/*.toml +.git Dockerfile -flamegraph.svg -perf.data -perf.data.old -/target -/web3-proxy/data/config/*.toml +target +web3-proxy/flamegraph.svg +web3-proxy/perf.data +web3-proxy/perf.data.old diff --git a/docker-compose.common.yml b/docker-compose.common.yml new file mode 100644 index 00000000..1f89cdf3 --- /dev/null +++ b/docker-compose.common.yml @@ -0,0 +1,5 @@ +services: + base: + build: . + restart: unless-stopped + command: --rpc-config-path /config.toml diff --git a/docker-compose.yml b/docker-compose.yml index 4003dd09..4d5f9a59 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,18 +1,84 @@ --- version: "3.4" -# docker run --rm -it -v $PWD/web3-proxy/data/config/production-arbitrum.toml:/config.toml satoshiandkin/web3-proxy --rpc-config-path /config.toml - - -base-service: - &base - data-transport-layer: - build: . - restart: unless-stopped - command: --rpc-config-path /config.toml - services: arbitrum: - <<: *base + extends: + file: docker-compose.common.yml + service: base volumes: - - ./web3-proxy/data/config/production-arbitrum.toml:/config.toml + - ./config/production-arbitrum.toml:/config.toml + ports: + - 7500:8544 + + avalanche-c: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-avalanche-c.toml:/config.toml + ports: + - 7501:8544 + + bsc: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-bsc.toml:/config.toml + ports: + - 7502:8544 + + eth: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-eth.toml:/config.toml + ports: + - 7503:8544 + + fantom: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-fantom.toml:/config.toml + ports: + - 7504:8544 + + gnosis: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-gnosis.toml:/config.toml + ports: + - 7505:8544 + + goerli: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-goerli.toml:/config.toml + ports: + - 7506:8544 + + optimism: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-optimism.toml:/config.toml + ports: + - 7507:8544 + + polygon: + extends: + file: docker-compose.common.yml + service: base + volumes: + - ./config/production-polygon.toml:/config.toml + ports: + - 7508:8544