-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
47 lines (41 loc) · 1009 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
services:
truffle: &base
build:
context: .
dockerfile: Dockerfile
args:
- NODE_ENV=development
command: exec /bin/true
environment:
APP_ENV: 'development'
NODE_ENV: 'development'
RPC_HOST: 'testrpc'
RPC_PORT: '8545'
SERVICES: 'RPC_HOST:RPC_PORT'
volumes:
- .:/srv/app
# prevent the local node_modules (provided by the above mount) from supplanting the containers own
- notused:/srv/app/node_modules
links:
- testrpc
test:
<<: *base
# don't want this to start with a "docker-compose up", but want to be able to
# run tests with "docker-compose run test test"
command: exec /bin/true
testrpc:
image: harshjv/testrpc
ports:
- 8545:8545
# parity:
# image: parity/parity:beta
# command: --chain dev --unsafe-expose
# ports:
# - 8545:8545
# - 8180:8180
# - 8546:8546
# - 30303:30303
# - 30303:30303/udp
volumes:
notused: