-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
209 lines (195 loc) · 5.46 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
version: "2.4"
volumes:
database:
name: btc-db
blockchain:
name: btc-data
database1:
name: angor-db
services:
indexer:
container_name: tbtc-indexer
image: blockcore/indexer-angor:0.2.78
mem_limit: 2048m
cpus: 0.200
environment:
VIRTUAL_HOST: tbtc.indexer.angor.io
VIRTUAL_PORT: 9910
VIRTUAL_PROTO: http
VIRTUAL_NETWORK: proxy
LETSENCRYPT_HOST: tbtc.indexer.angor.io
LETSENCRYPT_EMAIL: [email protected]
ASPNETCORE_URLS: http://+:9910
command: ["--chain=TBTC","--Network:RPCPort=38332"] # override rpcport in signet its 38332
restart: unless-stopped
depends_on:
mongo:
condition: service_healthy
chain:
condition: service_healthy
#ports:
# - 9910:9910 # Make this a public node.
networks:
- btcnetwork
- proxy
chain:
container_name: tbtc-chain
#image: blockcore/bitcoin-signet:latest
build: .
mem_limit: 2048m
cpus: 0.8 # how many cpus to use
healthcheck:
test: ["CMD", "bitcoin-cli", "ping"]
interval: 10s
retries: 5
start_period: 5s
timeout: 10s
restart: unless-stopped
stop_grace_period: 15m
volumes:
- blockchain:/root/.bitcoin
environment:
UACOMMENT: $UACOMMENT
BLOCKPRODUCTIONDELAY: ${BLOCKPRODUCTIONDELAY:-30}
MINERENABLED: ${MINERENABLED:-0} # change this to 1 if this node needs to mine (however for simplicity there should only be one mining node per challenge)
NBITS: $NBITS
MINETO: ${MINETO:-tb1qk4pq0rh75qtph47wlufhyss43flhvhvwe4zt8a} # miner private key path is m/84'/1'/0'/0/0 of test wallet wallet "radio diamond leg loud street announce guitar video shiver speed eyebrow"
PRIVKEY: ${PRIVKEY:-cNDhpWanXGyCed6U7eBNqRN3EyB7mEUbqm19tA7z5ho6BiNaPfmy}
SIGNETCHALLENGE: ${SIGNETCHALLENGE:-512102a3f8184701a033e5f8faa295647374b0bbc868082240d6e7ad8e9ecb0d86e6d451ae}
EXTERNAL_IP: $EXTERNAL_IP
RPCUSER: ${RPCUSER:-rpcuser}
RPCPASSWORD: ${RPCPASSWORD:-rpcpassword}
ports:
- 18333:18333 # Make this a public node.
- 8333:8333 # Make this a public node.
- 38333:38333 # Make this a public node.
- 38332:38332
networks:
- btcnetwork
mongo:
container_name: tbtc-mongo
image: mongo:5.0.12
mem_limit: 2048m
cpus: 0.200
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
restart: unless-stopped
stop_grace_period: 5m
volumes:
- database:/data/db
- database:/data/configdb
#ports:
# - 27017:27017 # Make this a public node.
networks:
- btcnetwork
explorer:
container_name: explorer
image: blockcore/explorer:0.2.28
mem_limit: 256m
cpus: 0.200
environment:
VIRTUAL_HOST: explorer.angor.io
VIRTUAL_PORT: 9911
VIRTUAL_NETWORK: proxy
VIRTUAL_PROTO: http
LETSENCRYPT_HOST: explorer.angor.io
LETSENCRYPT_EMAIL: [email protected]
ASPNETCORE_URLS: http://+:9910
command: ["--chain=TBTC"]
restart: unless-stopped
#ports:
# - 9911:9911 # Make this a public node.
networks:
- proxy
- btcnetwork
# blockcore-angor:
# container_name: angor
# image: blockcore/angor:0.0.58
# mem_limit: 1024m
# cpus: 0.200
# environment:
# VIRTUAL_HOST: faucettmp.angor.io
# VIRTUAL_PORT: 5500
# VIRTUAL_PROTO: http
# VIRTUAL_NETWORK: proxy
# LETSENCRYPT_HOST: faucettmp.angor.io
# LETSENCRYPT_EMAIL: [email protected]
# ASPNETCORE_URLS: http://+:5500
# Logging__LogLevel__Default: Debug
# DataConfig__UseDefaultPath: "true"
# restart: unless-stopped
# #ports:
# # - 5500:5500
# volumes:
# - database1:/root/.aspnet
# networks:
# - proxy
strfry-relay:
container_name: strfry-relay
image: dockurr/strfry:latest
environment:
VIRTUAL_HOST: relay.angor.io
VIRTUAL_PORT: 7777
VIRTUAL_PROTO: http
VIRTUAL_NETWORK: proxy
LETSENCRYPT_HOST: relay.angor.io
LETSENCRYPT_EMAIL: [email protected]
#ports:
# - 7777:7777
volumes:
- ./strfry/:/app/strfry-db
- ./strfry/strfry.conf:/etc/strfry.conf
networks:
- proxy
web:
image: getumbrel/umbrel-nostr-relay
user: "1000:1000"
container_name: public-relay-web
restart: on-failure
environment:
RELAY_HOST: "strfry-relay"
RELAY_PORT: "7777"
ports:
- 3000:3000 # to access the web view use relay.angor.io:3000
networks:
- proxy
strfry-relay-2:
container_name: strfry-relay-2
image: dockurr/strfry:latest
environment:
VIRTUAL_HOST: relay2.angor.io
VIRTUAL_PORT: 7778
VIRTUAL_PROTO: http
VIRTUAL_NETWORK: proxy
LETSENCRYPT_HOST: relay2.angor.io
LETSENCRYPT_EMAIL: [email protected]
#ports:
# - 7777:7777
volumes:
- ./strfry2/:/app/strfry-db
- ./strfry2/strfry.conf:/etc/strfry.conf
networks:
- proxy
web2:
image: getumbrel/umbrel-nostr-relay
user: "1000:1000"
container_name: public-relay-web-2
restart: on-failure
environment:
RELAY_HOST: "strfry-relay-2"
RELAY_PORT: "7778"
ports:
- 3001:3001 # to access the web view use relay.angor.io:3000
networks:
- proxy
networks:
btcnetwork:
external: false
name: btcnetwork
proxy:
external: true
name: proxy