forked from poetapp/node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
145 lines (136 loc) · 3.28 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: '3.6'
services:
mongo:
image: mongo:3.7
ports:
- "27017:27017"
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=rootPass
- POET_DB=poet
- POET_DB_USER=poet
- POET_DB_PASSWORD=poetPass
volumes:
- db:/data/db
- ./mongodb:/docker-entrypoint-initdb.d
rabbit:
image: rabbitmq:3
ports:
- "5671:5671"
- "5672:5672"
environment:
- RABBITMQ_ERLANG_COOKIE=some_secret_cookie
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=adminPass
ipfs:
image: ipfs/go-ipfs:v0.4.18
ports:
- "8080:8080"
- "4001:4001"
- "5001:5001"
volumes:
- data:/data/ipfs
bitcoind-1:
image: ruimarinho/bitcoin-core:0.17.0
ports:
- "18443:18443"
volumes:
- type: tmpfs
target: /home/bitcoin/.bitcoin
restart: always
command:
-printtoconsole
-server
-testnet=${USE_BTC_TESTNET:-0}
-regtest=${USE_BTC_REGTEST:-1}
-rpcuser=bitcoinrpcuser
-rpcpassword=bitcoinrpcpassword
-rpcallowip=::/0
bitcoind-2:
image: ruimarinho/bitcoin-core:0.17.0
ports:
- "19443:18443"
volumes:
- type: tmpfs
target: /home/bitcoin/.bitcoin
restart: always
command:
-printtoconsole
-server
-testnet=${USE_BTC_TESTNET:-0}
-regtest=${USE_BTC_REGTEST:-1}
-rpcuser=bitcoinrpcuser
-rpcpassword=bitcoinrpcpassword
-rpcallowip=::/0
k6:
build:
context: .
dockerfile: ./Docker/Dockerfile.stress
environment:
- NODE_HOST=http://poet-node:18080
volumes:
- .:/usr/src/app
poet-node:
build: .
ports:
- "18080:18080"
depends_on:
- mongo
- rabbit
- ipfs
- bitcoind-1
- bitcoind-2
environment:
- POET_SERVICE=node
- BITCOIN_URL=bitcoind-1
- BITCOIN_URL_B=bitcoind-2
- RABBITMQ_URL=amqp://admin:adminPass@rabbit
- MONGODB_HOST=mongo
- MONGODB_USER=poet
- MONGODB_PASSWORD=poetPass
- IPFS_URL=http://ipfs:5001
- IPFS_ARCHIVE_URL_PREFIX=http://ipfs:8080/ipfs
- INTEGRATION_TEST_NODE_URL=http://poet-node:18080
- GH_TOKEN=${GH_TOKEN:-''}
- NPM_TOKEN=${NPM_TOKEN:-''}
volumes:
- ./Docker/tools/wait-for-it.sh:/wait-for-it.sh
links:
- mongo
- rabbit
- ipfs
command: ["-c", "/wait-for-it.sh rabbit:5672 && npm run start"]
entrypoint: ["/bin/sh"]
poet-node-blockchain-writer:
build: .
depends_on:
- mongo
- rabbit
- bitcoind-1
- bitcoind-2
environment:
- POET_SERVICE=blockchain-writer
- BITCOIN_URL=bitcoind-1
- BITCOIN_URL_B=bitcoind-2
- RABBITMQ_URL=amqp://admin:adminPass@rabbit
- MONGODB_HOST=mongo
- MONGODB_USER=poet
- MONGODB_PASSWORD=poetPass
- GH_TOKEN=${GH_TOKEN:-''}
- NPM_TOKEN=${NPM_TOKEN:-''}
volumes:
- ./Docker/tools/wait-for-it.sh:/wait-for-it.sh
links:
- mongo
- rabbit
- bitcoind-1
- bitcoind-2
command: ["-c", "/wait-for-it.sh rabbit:5672 && npm run start:blockchain-writer"]
entrypoint: ["/bin/sh"]
volumes:
db:
driver: local
data:
driver: local