More compose file updates

This commit is contained in:
David Boreham 2022-08-13 22:30:12 -06:00
parent cd03078af7
commit 1202223650
7 changed files with 81 additions and 6 deletions

View File

@ -0,0 +1,11 @@
version: "3.2"
services:
contract:
depends_on:
go-ethereum:
condition: service_healthy
image: vulcanize/test-contract:local
environment:
ETH_ADDR: "http://go-ethereum:8545"
ports:
- "127.0.0.1:3000:3000"

View File

@ -6,7 +6,7 @@ services:
depends_on:
ipld-eth-db:
condition: service_healthy
image: vulcanize/ipld-eth-db:v4.1.4-alpha
image: vulcanize/ipld-eth-db:local
environment:
DATABASE_USER: "vdbm"
DATABASE_NAME: "vulcanize_testing"

View File

@ -0,0 +1,17 @@
version: "3.2"
services:
ipld-eth-db:
restart: always
image: vulcanize/ipld-eth-db:local
environment:
POSTGRES_USER: "vdbm"
POSTGRES_DB: "vulcanize_testing"
POSTGRES_PASSWORD: "password"
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 5s
timeout: 3s
retries: 5
ports:
- "127.0.0.1:8077:5432"
command: ["postgres", "-c", "log_statement=all"]

View File

@ -5,9 +5,7 @@ services:
depends_on:
ipld-eth-db:
condition: service_healthy
build:
context: ${vulcanize_eth_statediff_fill_service}
dockerfile: ./Dockerfile
image: vulcanize/eth-statediff-fill-service:local
environment:
ETH_SERVER_HTTPPATH: 0.0.0.0:8085
VDB_COMMAND: "serve"

View File

@ -0,0 +1,49 @@
ersion: "3.2"
services:
ipld-eth-server:
restart: unless-stopped
depends_on:
ipld-eth-db:
condition: service_healthy
image: vulcanize/ipld-eth-server:v4.0.5-alpha
environment:
IPLD_SERVER_GRAPHQL: "true"
IPLD_POSTGRAPHILEPATH: http://graphql:5000
ETH_SERVER_HTTPPATH: 0.0.0.0:8081
ETH_SERVER_GRAPHQL: "true"
ETH_SERVER_GRAPHQLPATH: 0.0.0.0:8082
VDB_COMMAND: "serve"
ETH_CHAIN_CONFIG: "/tmp/chain.json"
DATABASE_NAME: vulcanize_testing
DATABASE_HOSTNAME: ipld-eth-db
DATABASE_PORT: 5432
DATABASE_USER: "vdbm"
DATABASE_PASSWORD: "password"
ETH_CHAIN_ID: 99
ETH_FORWARD_ETH_CALLS: $eth_forward_eth_calls
ETH_PROXY_ON_ERROR: $eth_proxy_on_error
ETH_HTTP_PATH: $eth_http_path
volumes:
- type: bind
source: ../../start-up-files/ipld-eth-server/chain.json
target: /tmp/chain.json
ports:
- "127.0.0.1:8081:8081"
- "127.0.0.1:8082:8082"
graphql:
restart: unless-stopped
depends_on:
ipld-eth-db:
condition: service_healthy
image: vulcanize/postgraphile:v1.0.1
environment:
PG_HOST: ipld-eth-db
PG_PORT: 5432
PG_DATABASE: vulcanize_testing
PG_USER: vdbm
PG_PASSWORD: password
SCHEMA: public,eth
ports:
- "127.0.0.1:5000:5000"

View File

@ -4,4 +4,4 @@
# See: https://stackoverflow.com/a/246128/1701505
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
docker build -t vulcanize/go-ethereum-foundry:local ${SCRIPT_DIR}
docker build -t vulcanize/go-ethereum-foundry:local --build-arg GENESIS_FILE_PATH=genesis-automine.json ${SCRIPT_DIR}

View File

@ -1,2 +1,2 @@
# Build vulcanize/test-contract
docker build -t vulcanize/test-contract:local ${VULCANIZE_REPO_BASE_DIR}/ipld-eth-db-validator/test/contract
docker build -t vulcanize/test-contract:local --build-arg ETH_ADDR=http://go-ethereum:8545 ${VULCANIZE_REPO_BASE_DIR}/ipld-eth-db-validator/test/contract