2020-09-06 09:32:11 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
2022-07-12 08:10:45 +00:00
|
|
|
migrations:
|
2022-05-19 04:43:33 +00:00
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
2022-07-12 08:10:45 +00:00
|
|
|
- ipld-eth-db
|
2023-03-17 20:19:36 +00:00
|
|
|
image: git.vdb.to/cerc-io/ipld-eth-db/ipld-eth-db:v5.0.0-alpha
|
2020-09-06 09:32:11 +00:00
|
|
|
environment:
|
2022-05-19 04:43:33 +00:00
|
|
|
DATABASE_USER: "vdbm"
|
2022-07-12 08:10:45 +00:00
|
|
|
DATABASE_NAME: "vulcanize_testing"
|
2022-05-19 04:43:33 +00:00
|
|
|
DATABASE_PASSWORD: "password"
|
2022-07-12 08:10:45 +00:00
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
2022-05-19 04:43:33 +00:00
|
|
|
DATABASE_PORT: 5432
|
2020-09-06 09:32:11 +00:00
|
|
|
|
2022-07-12 08:10:45 +00:00
|
|
|
ipld-eth-db:
|
|
|
|
image: timescale/timescaledb:latest-pg14
|
|
|
|
restart: always
|
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "vdbm"
|
|
|
|
POSTGRES_DB: "vulcanize_testing"
|
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8077:5432"
|
|
|
|
|
2020-09-06 09:32:11 +00:00
|
|
|
eth-server:
|
2021-04-19 11:43:21 +00:00
|
|
|
restart: unless-stopped
|
2020-09-06 09:32:11 +00:00
|
|
|
depends_on:
|
2021-10-09 12:00:33 +00:00
|
|
|
- ipld-eth-db
|
2020-09-06 09:32:11 +00:00
|
|
|
build:
|
|
|
|
context: ./
|
|
|
|
cache_from:
|
|
|
|
- alpine:latest
|
|
|
|
- golang:1.13-alpine
|
|
|
|
environment:
|
2021-04-19 11:43:21 +00:00
|
|
|
IPLD_SERVER_GRAPHQL: "true"
|
|
|
|
IPLD_POSTGRAPHILEPATH: http://graphql:5000
|
2021-04-19 20:07:38 +00:00
|
|
|
ETH_SERVER_HTTPPATH: 0.0.0.0:8081
|
2020-09-06 09:32:11 +00:00
|
|
|
VDB_COMMAND: "serve"
|
2021-04-23 09:46:35 +00:00
|
|
|
ETH_CHAIN_CONFIG: "/tmp/chain.json"
|
2021-10-11 16:42:05 +00:00
|
|
|
DATABASE_NAME: "vulcanize_testing"
|
2021-10-09 12:00:33 +00:00
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
2020-09-06 09:32:11 +00:00
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_USER: "vdbm"
|
|
|
|
DATABASE_PASSWORD: "password"
|
2021-04-21 11:16:47 +00:00
|
|
|
ETH_CHAIN_ID: 4
|
2021-12-29 20:58:55 +00:00
|
|
|
ETH_FORWARD_ETH_CALLS: $ETH_FORWARD_ETH_CALLS
|
2021-12-30 02:29:59 +00:00
|
|
|
ETH_PROXY_ON_ERROR: $ETH_PROXY_ON_ERROR
|
|
|
|
ETH_HTTP_PATH: $ETH_HTTP_PATH
|
2021-04-23 09:46:35 +00:00
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: ./chain.json
|
|
|
|
target: /tmp/chain.json
|
2020-09-06 09:32:11 +00:00
|
|
|
ports:
|
2021-04-19 20:07:38 +00:00
|
|
|
- "127.0.0.1:8081:8081"
|
2020-09-06 09:32:11 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
vdb_db_eth_server:
|