2023-05-26 10:10:16 +00:00
|
|
|
# Runs the IPLD server and contract deployment server
|
2023-04-14 06:26:46 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
ipld-eth-server:
|
|
|
|
restart: unless-stopped
|
2023-09-21 06:55:26 +00:00
|
|
|
image: cerc/ipld-eth-server:local
|
2024-07-26 10:38:44 +00:00
|
|
|
build:
|
|
|
|
context: ..
|
2023-04-14 06:26:46 +00:00
|
|
|
networks:
|
|
|
|
- test_default
|
|
|
|
environment:
|
|
|
|
DATABASE_NAME: "cerc_testing"
|
|
|
|
DATABASE_HOSTNAME: "ipld-eth-db"
|
|
|
|
DATABASE_PORT: 5432
|
|
|
|
DATABASE_USER: "vdbm"
|
|
|
|
DATABASE_PASSWORD: "password"
|
|
|
|
ETH_HTTP_PATH: fixturenet-eth-geth-1:8545
|
2023-09-21 06:55:26 +00:00
|
|
|
ETH_CHAIN_CONFIG: /tmp/chain.json
|
2023-04-14 06:26:46 +00:00
|
|
|
ETH_PROXY_ON_ERROR: false
|
|
|
|
ETH_FORWARD_ETH_CALLS: $ETH_FORWARD_ETH_CALLS
|
|
|
|
SERVER_HTTP_PATH: 0.0.0.0:8081
|
|
|
|
VDB_COMMAND: serve
|
2023-09-21 06:55:26 +00:00
|
|
|
LOG_LEVEL: debug
|
2023-04-14 06:26:46 +00:00
|
|
|
volumes:
|
2023-09-21 06:55:26 +00:00
|
|
|
- type: bind
|
|
|
|
source: $ETH_CHAIN_CONFIG
|
|
|
|
target: /tmp/chain.json
|
2023-04-14 06:26:46 +00:00
|
|
|
ports:
|
2023-09-21 06:55:26 +00:00
|
|
|
- 127.0.0.1:8081:8081
|
2023-04-14 06:26:46 +00:00
|
|
|
|
|
|
|
contract-deployer:
|
|
|
|
restart: on-failure
|
2024-05-29 12:29:55 +00:00
|
|
|
image: cerc/ipld-eth-server/test-contract-deployer:local
|
2023-04-14 06:26:46 +00:00
|
|
|
build: ./contract
|
|
|
|
networks:
|
|
|
|
- test_default
|
|
|
|
environment:
|
|
|
|
ETH_ADDR: "http://fixturenet-eth-geth-1:8545"
|
|
|
|
ETH_CHAIN_ID: $ETH_CHAIN_ID
|
|
|
|
DEPLOYER_PRIVATE_KEY: $DEPLOYER_PRIVATE_KEY
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:3000:3000
|
|
|
|
|
|
|
|
networks:
|
|
|
|
test_default:
|
|
|
|
external: true
|