This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
107 lines (106 loc) · 3.92 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
version: '3.8'
services:
web:
image: nginx:1.17.8
container_name: web
volumes:
- ${PWD}/nginx:/etc/nginx
restart: on-failure
ports:
- "80:80"
stop_grace_period: 30s
networks:
net:
ipv4_address: 10.254.1.2
bitcoin:
image: lncm/bitcoind:v22.0@sha256:37a1adb29b3abc9f972f0d981f45e41e5fca2e22816a023faa9fdc0084aa4507
container_name: bitcoin
user: 1000:1000
environment:
HOME: /data
volumes:
- ${PWD}/bitcoin:/data/.bitcoin
- ${PWD}/bitcoin:/data/bitcoin
restart: on-failure
ports:
- "8333:8333"
- "8332:8332"
stop_grace_period: 20m30s
networks:
net:
ipv4_address: 10.254.2.2
lnd:
image: "lightninglabs/lnd:v0.15.1-beta@sha256:b2a5f62806d1a295c4e600e0b99159cbfae1d5caf338db01bccfbc8393838275"
user: 1000:1000
environment:
HOME: /data
container_name: lnd
volumes:
- ${PWD}/lnd:/data/.lnd
- ${PWD}/bitcoin:/data/.bitcoin
- ${PWD}/secrets/lnd-password.txt:/data/.lnd/walletpassword
restart: on-failure
ports:
- "9735:9735"
- "10009:10009"
depends_on: [ bitcoin, web ]
stop_grace_period: 5m30s
networks:
net:
ipv4_address: 10.254.2.3
invoicer:
image: "lncm/invoicer:v0.8.1"
user: 1000:1000
environment:
HOME: /data
container_name: invoicer
depends_on: [ bitcoin, lnd ]
restart: on-failure
stop_grace_period: 30s
volumes:
- "${PWD}/invoicer:/data"
- "${PWD}/invoicer:/data/.lncm"
- "${PWD}/lnd:/lnd"
networks:
net:
ipv4_address: 10.254.2.4
neutrino-switcher:
image: "lncm/neutrino-switcher:1.0.4"
user: 1000:1000
environment:
HOME: /data
container_name: neutrino-switcher
depends_on: [ lnd, bitcoin ]
restart: always
volumes:
- "${PWD}/lnd:/lnd"
- "${PWD}/secrets:/secrets"
- "${PWD}/statuses:/statuses"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
JSONRPCURL: http://10.254.2.2:8332
LND_CONTAINER_NAME: lnd
SLEEPTIME: 43200
networks:
net:
ipv4_address: 10.254.2.6
tor:
image: "lncm/tor:0.4.7.9@sha256:86c2fe9d9099e6376798979110b8b9a3ee5d8adec27289ac4a5ee892514ffe92"
container_name: tor
user: 1000:1000
environment:
HOME: /data
restart: on-failure
volumes:
- "${PWD}/tor/torrc:/etc/tor/torrc"
- "${PWD}/tor/data:/var/lib/tor/"
- "${PWD}/tor/run:/var/run/tor/"
networks:
net:
ipv4_address: 10.254.1.3
networks:
net:
ipam:
driver: default
config:
- subnet: 10.254.0.0/16