-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
154 lines (140 loc) · 3.48 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
146
147
148
149
150
151
152
153
154
version: "2"
services:
postgres:
image: postgres:alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
- ./data/database:/tmp/database
environment:
- POSTGRES_PASSWORD=pooldetective
networks:
- pooldetective
blockobserverhost:
depends_on:
- postgres
image: pooldetective-blockobserverhost
restart: always
environment:
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
- LOGLEVEL=4
networks:
- pooldetective
ports:
- 52001:52001
coordinatorhost:
depends_on:
- postgres
image: pooldetective-coordinatorhost
restart: always
environment:
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
- LOGLEVEL=4
networks:
- pooldetective
ports:
- 52005:52005
stratumclienthost:
depends_on:
- postgres
image: pooldetective-stratumclienthost
restart: always
environment:
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
- LOGLEVEL=4
networks:
- pooldetective
ports:
- 52002:52002
pubsubhost:
depends_on:
- postgres
image: pooldetective-pubsubhost
restart: always
environment:
- LOGLEVEL=4
networks:
- pooldetective
ports:
- 52003:52003
- 52004:52004
coordinator:
depends_on:
- postgres
- coordinatorhost
- pubsubhost
image: pooldetective-coordinator
restart: always
environment:
- HUBHOST=10.211.142.1
- LOCATIONID=1
- LOGLEVEL=4
- DOCKER_API_VERSION=1.40
- IMAGE_PREFIX=pooldetective
- REGISTRY=
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- pooldetective
coind-btc:
image: pooldetective-coind-btc
restart: always
networks:
- pooldetective
volumes:
- ./data/coins/btc:/root/.bitcoin
frontend:
image: pooldetective-frontend
restart: always
networks:
- pooldetective
api:
image: pooldetective-api
restart: always
networks:
- pooldetective
environment:
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
- APIKEYS=2a97516c354b68848cdbd8f54a226a0a55b21ed138e207ad6c5cbb9c00aa5aea
apidocs:
image: pooldetective-apidocs
restart: always
networks:
- pooldetective
coind-ltc:
image: pooldetective-coind-ltc
restart: always
networks:
- pooldetective
volumes:
- ./data/coins/ltc:/root/.litecoin
blockfetcher:
depends_on:
- postgres
- coind-btc
- coind-ltc
image: pooldetective-blockfetcher
networks:
- pooldetective
restart: always
environment:
- PGSQL_CONNECTION=postgres://postgres:pooldetective@postgres/postgres?sslmode=disable
- COINS=BTC-LTC
- BTC_NAME=Bitcoin
- BTC_COINBASE_STARTHEIGHT=99999999
- BTC_RPCHOST=coind-btc:8332
- BTC_RPCUSER=pooldetective
- BTC_RPCPASS=pooldetective
- LTC_NAME=Litecoin
- LTC_COINBASE_STARTHEIGHT=99999999
- LTC_RPCHOST=coind-ltc:9332
- LTC_RPCUSER=pooldetective
- LTC_RPCPASS=pooldetective
- LOGLEVEL=4
networks:
pooldetective:
driver: bridge
ipam:
config:
- subnet: 10.211.142.0/24
gateway: 10.211.142.1