-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
103 lines (94 loc) · 2.71 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
version: "3"
services:
bitcoind:
container_name: bitcoind
restart: always
image: btcpayserver/bitcoin:0.18.0
ports:
- "18443:18443"
- "18444:18444"
environment:
BITCOIN_NETWORK: regtest
BITCOIN_EXTRA_ARGS: |
rpcbind=bitcoind:18443
volumes:
- "bitcoind_data:/data"
nbxplorer:
container_name: nbxplorer
restart: always
image: "nicolasdorier/nbxplorer:2.1.10"
expose:
- "32838"
environment:
NBXPLORER_NETWORK: ${NBITCOIN_NETWORK:-regtest}
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_CHAINS: btc
NBXPLORER_SIGNALFILEDIR: /datadir
NBXPLORER_BTCRPCURL: http://bitcoind:18443
NBXPLORER_BTCNODEENDPOINT: bitcoind:18444
volumes:
- "bitcoind_data:/root/.bitcoin"
- "nbxplorer_data:/datadir"
links:
- bitcoind
btcpay:
container_name: btcpay
restart: always
image: "btcpayserver/btcpayserver:1.0.3.118"
environment:
BTCPAY_PSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserverregtest
BTCPAY_NETWORK: regtest
BTCPAY_ROOTPATH: /
BTCPAY_CHAINS: btc
BTCPAY_SOCKSENDPOINT: tor:9050
BTCPAY_TORRCFILE: /usr/local/etc/tor/torrc-2
BTCPAY_BTCEXPLORERURL: http://nbxplorer:32838
HIDDENSERVICE_NAME: BTCPayServer
volumes:
- "btcpay_data:/datadir"
- "nbxplorer_data:/root/.nbxplorer"
- "torrc_data:/usr/local/etc/tor/"
- "torservice_data:/var/lib/tor/hidden_services"
links:
- nbxplorer
- postgres
- tor
postgres:
container_name: postgres
restart: always
image: postgres:9.6.5
expose:
- "5432"
volumes:
- "postgres_data:/var/lib/postgresql/data"
tor:
container_name: tor
restart: always
image: btcpayserver/tor:0.3.5.8
expose:
- "9050"
environment:
TOR_PASSWORD: btcpayserver
TOR_ADDITIONAL_CONFIG: /usr/local/etc/tor/torrc-2
TOR_EXTRA_ARGS: |
CookieAuthentication 1
volumes:
- "torrc_data:/usr/local/etc/tor"
- "torservice_data:/var/lib/tor/hidden_services"
tor-gen:
container_name: tor-gen
restart: always
image: btcpayserver/docker-gen:0.7.5
entrypoint: /usr/local/bin/docker-gen -notify-sighup tor -watch -wait 5s:30s /etc/docker-gen/templates/torrc.tmpl /usr/local/etc/tor/torrc-2
volumes:
- "/var/run/docker.sock:/tmp/docker.sock:ro"
- "./torrc.tmpl:/etc/docker-gen/templates/torrc.tmpl:ro"
- "torrc_data:/usr/local/etc/tor"
volumes:
bitcoind_data:
nbxplorer_data:
btcpay_data:
postgres_data:
torrc_data:
torservice_data:
networks: {}