-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-electrumx.yml
66 lines (62 loc) · 1.45 KB
/
docker-compose-electrumx.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
version: '2.1'
services:
bitcored:
build:
context: ./docker-bitcored
dockerfile: ./Dockerfile
image: bitcored
container_name: bitcore-rpc
command:
-externalip=51.15.77.33
-whitebind=172.21.0.11:8555
-rpcbind=172.21.0.11
-maxconnections=64
-rpcuser=btx-rpc-user
-rpcpassword=btx-rpc-pwd
restart: always
networks:
bitcore-net:
ipv4_address: 172.21.0.11
ports:
- 8555:8555
expose:
- 8555
- 8556
volumes:
- /home/bitcore:/data
healthcheck:
test: "bitcore-cli -datadir=/data -conf=/data/bitcore.conf -rpcconnect=172.21.0.11 -rpcuser=btx-rpc-user -rpcpassword=btx-rpc-pwd -rpcport=8556 mnsync status | grep MASTERNODE_SYNC_FINISHED"
interval: 2m
timeout: 1m
retries: 60
electrumx:
image: dalijolijo/electrumx:1.15.0
container_name: electrumx
restart: always
networks:
bitcore-net:
ipv4_address: 172.21.0.12
ports:
- 8000:8000
- 50002:50002
expose:
- 8000
- 50002
volumes:
- /home/bitcore:/data
environment:
DAEMON_URL: "http://btx-rpc-user:[email protected]:8556"
COIN: "Bitcore"
COST_SOFT_LIMIT: 0
COST_HARD_LIMIT: 0
CACHE_MB: 2048
depends_on:
bitcored:
condition: service_healthy
networks:
bitcore-net:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.21.0.0/24