Skip to content

Instantly share code, notes, and snippets.

@serbrech
Created May 8, 2018 07:47
Show Gist options
  • Save serbrech/855b85bbe4b862d3c7dd5b26ff82cf83 to your computer and use it in GitHub Desktop.
Save serbrech/855b85bbe4b862d3c7dd5b26ff82cf83 to your computer and use it in GitHub Desktop.
docker-compose for truffle dev environment
version: '3'
services:
node:
container_name: node
image: node:9.8.0-alpine
#build: truffle
volumes:
- ./dapp:/dapp
ports:
- "3000:3000"
entrypoint:
- npm
- run
- watch:js
- --prefix
- /dapp
truffle:
container_name: truffle
image: serbrech/truffle
volumes:
- ./dapp:/dapp
ports:
- "8546:8546"
entrypoint:
- npm
- run
- watch:sol
- --
- --network
- ganache
ganache:
container_name: ganache
image: trufflesuite/ganache-cli:latest
ports:
- "9545:9545"
command: '--db "/.ganacheDB" --networkId 20180320 --blockTime 3 --deterministic --mnemonic "gloom canyon crush comfort feature antenna annual relax goddess panic wrap table" --port 9545'
volumes:
- ganache:/.ganacheDB
volumes:
ganache:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment