mirror of
https://github.com/zkopru-network/zkopru.git
synced 2026-01-15 01:08:07 -05:00
1. Describe build context & dockerfiles in `dockerfiles/docker-compose.yml`. 2. Using utils.buildAndGetContainer() function, specify the service name and build the image before run test. 3. To skip the initial build process, developer can run `yarn pull:images` on the root directory.
29 lines
747 B
YAML
29 lines
747 B
YAML
version: "3"
|
|
|
|
services:
|
|
testnet:
|
|
build:
|
|
context: ./packages/contracts/
|
|
dockerfile: ../../dockerfiles/Contract.dockerfile
|
|
ports:
|
|
- "5000:5000"
|
|
command: ganache-cli --db=/data -i 20200406 -p 5000 --deterministic --host 0.0.0.0
|
|
coordinator:
|
|
build:
|
|
context: ./
|
|
dockerfile: ./dockerfiles/Coordinator.dockerfile
|
|
ports:
|
|
- "8888:8888"
|
|
links:
|
|
- 'testnet:testnet'
|
|
depends_on:
|
|
- 'testnet'
|
|
- 'postgres'
|
|
command: 'node /proj/packages/coordinator/dist/cli.js --ws ws://testnet:5000 --config /proj/packages/coordinator/coordinator.json'
|
|
postgres:
|
|
image: postgres
|
|
restart: always
|
|
environment:
|
|
POSTGRES_PASSWORD: helloworld
|
|
ports:
|
|
- "5432:5432" |