-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-dev.yml
91 lines (84 loc) · 2.15 KB
/
docker-compose-dev.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.5"
services:
alice:
build: .
# Note: Instead of using `dhxdocker/datahighway:latest` from Docker Hub, which
# may reflects the latest version on Github, during development we want to build
# a Docker container using the Dockerfile, which contains the latest local changes of our current branch.
# Run docker-compose -f docker-compose-dev.yml build --no-cache to build and create a new image.
image: dhxdocker/datahighway:latest
env_file:
- .env
ports:
- 30333:30333 # TCP
- 9944:9944 # WS
- 9933:9933 # RPC
volumes:
- basePath:/tmp
- ./scripts:/dhx/node/scripts
- ./node/src/chain-built:/dhx/node/node/src/chain-built
restart: always
entrypoint:
- ./docker-entrypoint-alice.sh
bob:
image: dhxdocker/datahighway:latest
env_file:
- .env
ports:
- 30334:30333
- 9945:9944
- 9934:9933
volumes:
- basePath:/tmp
- ./scripts:/dhx/node/scripts
- ./node/src/chain-built:/dhx/node/node/src/chain-built
restart: always
entrypoint:
- ./docker-entrypoint-bob.sh
charlie:
image: dhxdocker/datahighway:latest
env_file:
- .env
ports:
- 30335:30333
- 9946:9944
- 9935:9933
volumes:
- basePath:/tmp
- ./scripts:/dhx/node/scripts
- ./node/src/chain-built:/dhx/node/node/src/chain-built
restart: always
entrypoint:
- ./docker-entrypoint-charlie.sh
dave:
image: dhxdocker/datahighway:latest
env_file:
- .env
ports:
- 30336:30333
- 9947:9944
- 9936:9933
volumes:
- basePath:/tmp
- ./scripts:/dhx/node/scripts
- ./node/src/chain-built:/dhx/node/node/src/chain-built
restart: always
entrypoint:
- ./docker-entrypoint-dave.sh
eve:
image: dhxdocker/datahighway:latest
env_file:
- .env
ports:
- 30337:30333
- 9948:9944
- 9937:9933
volumes:
- basePath:/tmp
- ./scripts:/dhx/node/scripts
- ./node/src/chain-built:/dhx/node/node/src/chain-built
restart: always
entrypoint:
- ./docker-entrypoint-eve.sh
volumes:
basePath: