Files
zkopru/docker-compose.yml
Wanseob Lim c5f15ecc45 refactor: improve build & test process
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.
2020-08-17 13:31:47 +09:00

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"