Files
zkopru/docker-compose.dev.yml
2020-12-25 00:55:33 -06:00

61 lines
1.8 KiB
YAML

version: "3"
services:
testnet:
ports:
- "5000:5000"
build:
context: ./packages/contracts/
dockerfile: ../../dockerfiles/Contract.dockerfile
command: ganache-cli --db=/data -i 20200406 -p 5000 --gasLimit 12000000 --deterministic --host 0.0.0.0 --secure --blockTime 10
postgres:
ports:
- "5678:5432"
build:
context: ./
dockerfile: ./dockerfiles/Postgres.dockerfile
environment:
POSTGRES_PASSWORD: helloworld
POSTGRES_URL: postgresql://postgres:helloworld@localhost:5432/zkopru
# postgres-setup:
# build:
# context: ./
# dockerfile: ./dockerfiles/PostgresSetup.dockerfile
# depends_on:
# - 'postgres'
# links:
# - 'postgres:postgres'
# environment:
# POSTGRES_URL: postgresql://postgres:helloworld@postgres:5432/zkopru
# command: prisma migrate up --experimental --schema /proj/prisma/postgres-migrator.prisma --verbose
coordinator:
build:
context: ./
dockerfile: ./dockerfiles/Cli.dockerfile
ports:
- "1234:1234"
- "8888:8888"
links:
- 'testnet:testnet'
- 'postgres:postgres'
depends_on:
- 'testnet'
- 'postgres'
# command: sh -c "sleep 5s && gotty -w --port 1234 node /proj/packages/cli/dist/apps/coordinator/cli.js --config /proj/packages/cli/coordinator.dev.json"
environment:
POSTGRES_URL: postgresql://postgres:helloworld@postgres:5432/zkopru
wallet:
build:
context: ./
dockerfile: ./dockerfiles/Cli.dockerfile
ports:
- "4321:4321"
links:
- 'testnet:testnet'
- 'postgres:postgres'
- 'coordinator:coordinator'
depends_on:
- 'testnet'
- 'postgres'
command: sh -c "sleep 5s && gotty -w --port 4321 node /proj/packages/cli/dist/apps/wallet/cli.js --config /proj/packages/cli/wallet.dev.json"