2020-09-06 09:32:11 +00:00
|
|
|
version: '3.2'
|
|
|
|
|
|
|
|
services:
|
|
|
|
dapptools:
|
|
|
|
restart: unless-stopped
|
2021-04-16 13:02:04 +00:00
|
|
|
depends_on:
|
2021-04-19 12:40:42 +00:00
|
|
|
- statediff-migrations
|
2021-10-07 09:35:11 +00:00
|
|
|
image: vulcanize/dapptools:0.30.0-v1.10.9-statediff-0.0.27
|
2021-04-16 13:02:04 +00:00
|
|
|
environment:
|
|
|
|
DB_USER: vdbm
|
|
|
|
DB_NAME: vulcanize_public
|
|
|
|
DB_HOST: db
|
|
|
|
DB_PORT: 5432
|
|
|
|
DB_PASSWORD: password
|
2020-09-06 09:32:11 +00:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8545:8545"
|
|
|
|
- "127.0.0.1:8546:8546"
|
|
|
|
|
2021-04-16 13:02:04 +00:00
|
|
|
statediff-migrations:
|
|
|
|
restart: on-failure
|
|
|
|
depends_on:
|
|
|
|
- db
|
2021-09-27 16:25:43 +00:00
|
|
|
image: vulcanize/statediff-migrations:v0.8.0
|
2021-04-16 13:02:04 +00:00
|
|
|
environment:
|
|
|
|
DATABASE_USER: vdbm
|
|
|
|
DATABASE_NAME: vulcanize_public
|
|
|
|
DATABASE_HOSTNAME: db
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_PASSWORD: password
|
|
|
|
|
2020-09-06 09:32:11 +00:00
|
|
|
db:
|
|
|
|
restart: always
|
|
|
|
image: postgres:10.12-alpine
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: "vdbm"
|
|
|
|
POSTGRES_DB: "vulcanize_public"
|
|
|
|
POSTGRES_PASSWORD: "password"
|
|
|
|
volumes:
|
|
|
|
- vdb_db_eth_server:/var/lib/postgresql/data
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:8077:5432"
|
2021-09-27 11:44:27 +00:00
|
|
|
command: ["postgres", "-c", "log_statement=all"]
|
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:
|
|
|
|
- db
|
|
|
|
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"
|
2020-09-06 09:32:11 +00:00
|
|
|
DATABASE_NAME: "vulcanize_public"
|
|
|
|
DATABASE_HOSTNAME: "db"
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_USER: "vdbm"
|
|
|
|
DATABASE_PASSWORD: "password"
|
2021-04-21 11:16:47 +00:00
|
|
|
ETH_CHAIN_ID: 4
|
2021-09-27 12:23:42 +00:00
|
|
|
RUN_DB_MIGRATION: "no"
|
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
|
|
|
|
|
|
|
graphql:
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- db
|
2020-09-09 20:04:15 +00:00
|
|
|
image: vulcanize/postgraphile:v1.0.1
|
2020-09-06 09:32:11 +00:00
|
|
|
environment:
|
|
|
|
- PG_HOST=db
|
|
|
|
- PG_PORT=5432
|
|
|
|
- PG_DATABASE=vulcanize_public
|
|
|
|
- PG_USER=vdbm
|
|
|
|
- PG_PASSWORD=password
|
|
|
|
- SCHEMA=public,eth
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:5000:5000"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
vdb_db_eth_server:
|