-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.btcpay.yml
More file actions
139 lines (131 loc) · 3.51 KB
/
docker-compose.btcpay.yml
File metadata and controls
139 lines (131 loc) · 3.51 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
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
version: "3"
services:
# Bitcoin daemon for blockchain transaction data
bitcoind:
container_name: bitcoind
restart: unless-stopped
image: btcpayserver/bitcoin:0.19.0.1
environment:
BITCOIN_NETWORK: regtest
BITCOIN_EXTRA_ARGS: |
debug=1
regtest=1
server=1
rpcport=43782
rpcbind=0.0.0.0:43782
port=39388
whitelist=0.0.0.0/0
rpcuser=rpcuser
rpcpassword=rpcpassword
expose:
- "43782" # rpc port
- "39388" # bitcoin node can communicate
ports:
- "43782:43782"
- "39388:39388"
volumes:
- "bitcoind_data:/data"
# Blockchain explorer
nbxplorer:
container_name: nbxplorer
restart: unless-stopped
image: nicolasdorier/nbxplorer:2.1.34
ports:
- "32838:32838"
environment:
NBXPLORER_NETWORK: regtest
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_SIGNALFILEDIR: /datadir
NBXPLORER_NOAUTH: 1
NBXPLORER_CHAINS: btc
NBXPLORER_BTCRPCURL: http://bitcoind:43782/
NBXPLORER_BTCRPCUSER: rpcuser
NBXPLORER_BTCRPCPASSWORD: rpcpassword
NBXPLORER_BTCNODEENDPOINT: bitcoind:39388
volumes:
- "bitcoind_data:/root/.bitcoin"
- "nbxplorer_data:/datadir"
links:
- bitcoind
btcpay:
container_name: btcpay
restart: unless-stopped
image: btcpayserver/btcpayserver:1.0.5.2
ports:
- "49392:49392"
environment:
BTCPAY_BIND: 0.0.0.0:49392
BTCPAY_POSTGRES: User ID=user;Password=password;Host=btcpay_db;Port=5432;Database=btcpay_regtest
BTCPAY_NETWORK: regtest
BTCPAY_CHAINS: btc
BTCPAY_ROOTPATH: /
BTCPAY_BTCEXPLORERURL: http://nbxplorer:32838/
BTCPAY_DEBUGLOG: btcpay.log
# https://docs.btcpayserver.org/LightningNetwork/#choosing-the-lightning-network-implementation
# BTCPAYGEN_LIGHTNING: clightning
# BTCPAYGEN_LIGHTNING: lnd
volumes:
- "btcpay_data:/datadir"
- "nbxplorer_data:/root/.nbxplorer"
links:
- btcpay_db
- bitcoind
- nbxplorer
# - lightningd
# - lnd
# lnd:
# image: lightningnetwork/lnd-alpine
# container_name: lnd
# environment:
# RPCHOST: bitcoind
# RPCUSER: rpcuser
# RPCPASS: rpcpassword
# DEBUG: debug
# NETWORK: regtest
# volumes:
# - bitcoind_data:/rpc
# - lnd_data:/root/.lnd
# links:
# - bitcoind
# lightningd:
# image: elementsproject/lightningd
# container_name: lightningd
# command:
# - --bitcoin-rpcconnect=bitcoind
# - --bitcoin-rpcuser=rpcuser
# - --bitcoin-rpcpassword=rpcpassword
# - --bitcoin-rpcport=43782
# - --network=regtest
# - --alias=lightningdnode
# - --log-level=debug
# environment:
# EXPOSE_TCP: "true"
# expose:
# - "9735"
# ports:
# - "0.0.0.0:9735:9735"
# volumes:
# - "lightningd_data:/root/.lightning"
# - "bitcoind_data:/etc/bitcoin"
# links:
# - bitcoind
btcpay_db:
container_name: btcpay_db
restart: unless-stopped
image: postgres:11.5-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_MULTIPLE_DATABASES: blocklux_development,btcpay_regtest
ports:
- "54321:5432"
volumes:
- /usr/local/var/postgres/data:/var/lib/postgresql/data
- /usr/local/var/postgres/docker/multi-db-entrypoint:/docker-entrypoint-initdb.d
volumes:
bitcoind_data:
btcpay_data:
# lightningd_data:
# lnd_data:
nbxplorer_data:
networks: {}