-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
109 lines (99 loc) · 2.04 KB
/
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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "2"
services:
regtest:
build:
context: .
dockerfile: Dockerfile
image: "doichain/node-only:dc0.20.1.6"
container_name: regtest
environment:
- REGTEST=true
- RPC_ALLOW_IP=0.0.0.0/0
- RPC_PASSWORD=adminpw
ports:
- "8338:8338"
- "8339:8339"
- "18332:18332"
stdin_open: true
tty: true
privileged: true
networks:
static:
ipv4_address: 172.22.0.5
peer1:
build:
context: .
dockerfile: Dockerfile
working_dir: /BlockPro/
image: "node:lts-buster"
hostname: peer1
volumes:
- .:/BlockPro/
#command: bash -c "npm run start1"
container_name: peer1
stdin_open: true
tty: true
privileged: true
networks:
static:
ipv4_address: 172.22.0.2
peer2:
build:
context: .
dockerfile: Dockerfile
working_dir: /BlockPro/
image: "node:lts-buster"
hostname: peer2
volumes:
- .:/BlockPro/
#command: bash -c "npm run start2"
container_name: peer2
stdin_open: true
tty: true
privileged: true
networks:
static:
ipv4_address: 172.22.0.3
peer3:
build:
context: .
dockerfile: Dockerfile
working_dir: /BlockPro/
image: "node:lts-buster"
hostname: peer3
volumes:
- .:/BlockPro/
#command: bash -c "npm run start3"
container_name: peer3
stdin_open: true
tty: true
privileged: true
networks:
static:
ipv4_address: 172.22.0.4
electrumx-doi:
build:
context: .
dockerfile: Dockerfile
working_dir: /home/electrumx
image: "stallingerl/electrumx-doi"
hostname: electrumx-doi
volumes:
- .:/BlockPro/
command: bash -c "./startServer.sh"
container_name: electrumx-doi
ports:
- "8334:8334"
stdin_open: true
tty: true
privileged: true
networks:
static:
ipv4_address: 172.22.0.6
networks:
static:
driver: bridge
ipam:
config:
- subnet: 172.22.0.0/16
gateway: 172.22.0.1