forked from NicolasDorier/docker-bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
91 lines (88 loc) · 2.33 KB
/
docker-compose.yaml
File metadata and controls
91 lines (88 loc) · 2.33 KB
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
version: "2"
services:
bitcoind:
build:
context: ./core/0.17.0/
#image: nicolasdorier/docker-bitcoin:0.17.0
container_name: bitcoind
environment:
BITCOIN_EXTRA_ARGS: |
whitelist=0.0.0.0/0
server=1
testnet=1
rpclisten=<your aws ip - have your firewall up!>:10009
bitcoind.rpchost=<your aws ip - have your firewall up!>
rpcuser=rpcuser
rpcpassword=rpcpass
rpcallowip=0.0.0.0/0
prune=3000
externalip=<your external ip>
disablewallet=1
bitcoin.node=bitcoind
bitcoind.zmqpubrawblock=tcp://bitcoind:28332
bitcoind.zmqpubrawtx=tcp://bitcoind:28333
autopilot.active=0
dbcache=100
maxorphantx=10
maxmempool=50
maxconnections=40
maxuploadtarget=500000
expose:
- "18332"
ports:
- "0.0.0.0:18333:18333"
volumes:
- "bitcoin_datadir:/data"
mem_limit: 500m
# clightning_bitcoin:
# image: elementsproject/lightningd
# container_name: lightningd
# command:
# - --bitcoin-rpcconnect=bitcoind:8332
# - --bitcoin-rpcuser=rpcuser
# - --bitcoin-rpcpassword=rpcpass
# - --network=testnet
# - --alias=piezzo-clightning
# - --log-level=debug
# environment:
# EXPOSE_TCP: "true"
# expose:
# - "9735"
# ports:
# - "0.0.0.0:9735:9735"
# volumes:
# - "clightning_bitcoin_datadir:/root/.lightning"
# - "bitcoin_datadir:/etc/bitcoin"
# links:
# - bitcoind
lnd_bitcoin:
build:
context: ./lnd/0.5.1-beta/
#image: piezzo/lnd_bitcoin
container_name: lnd
environment:
BITCOIN_EXTRA_ARGS: |
bitcoin.active=1
bitcoin.testnet=1
rpclisten=0.0.0.0:10009
bitcoind.rpchost=<your aws ip - have your firewall up!>:8332
bitcoind.rpcuser=rpcuser
bitcoind.rpcpass=rpcpass
bitcoin.node=bitcoind
bitcoind.zmqpubrawblock=tcp://bitcoind:28332
bitcoind.zmqpubrawtx=tcp://bitcoind:28333
expose:
- "9735"
- "10009"
ports:
- "0.0.0.0:9735:9735"
- "0.0.0.0:10009:10009"
volumes:
- "clightning_bitcoin_datadir:/root/.lnd"
- "bitcoin_datadir:/etc/bitcoin"
mem_limit: 300m
links:
- bitcoind
volumes:
bitcoin_datadir:
clightning_bitcoin_datadir: