-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
137 lines (131 loc) · 3.19 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
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
version: "3"
services:
bitcoind:
container_name: bitcoind
hostname: bitcoind
image: ruimarinho/bitcoin-core:0.21-alpine
env_file: .env
# volumes:
# - bitcoind-data:/home/bitcoin/.bitcoin
# https://manpages.debian.org/testing/bitcoind/bitcoind.1.en.html
command: [
"-chain=${BTCD_NETWORK}",
# "-debug",
"-datadir=/bitcoin/.bitcoin",
"-rpcuser=${BTCD_RPCUSER}",
"-rpcpassword=${BTCD_RPCPASS}",
"-rpcport=${BTCD_RPCPORT}",
"-rpcbind=0.0.0.0:${BTCD_RPCPORT}",
"-rpcallowip=0.0.0.0/0",
"-timeout=3600000",
"-listenonion=0",
"-printtoconsole",
"-server",
"-txindex",
"-fallbackfee=0.001",
"-zmqpubrawblock=tcp://0.0.0.0:28332",
"-zmqpubrawtx=tcp://0.0.0.0:28333"
]
ali-lnd:
container_name: ali-lnd
hostname: ali-lnd
build:
context: .
dockerfile: docker/lnd/Dockerfile
image: lnd
depends_on:
- bitcoind
env_file: .env
volumes:
- ali-lnd-data:/root/.lnd
command: [
"--noseedbackup",
"--bitcoin.active",
"--bitcoin.node=bitcoind",
"--bitcoin.${BTCD_NETWORK}",
"--bitcoind.rpchost=bitcoind",
"--bitcoind.rpcuser=${BTCD_RPCUSER}",
"--bitcoind.rpcpass=${BTCD_RPCPASS}",
"--bitcoind.zmqpubrawblock=tcp://bitcoind:28332",
"--bitcoind.zmqpubrawtx=tcp://bitcoind:28333",
"--rpclisten=0.0.0.0:10009",
"--listen=0.0.0.0:19735",
"--externalhosts=ali-lnd:19735",
"--debuglevel=info"
]
bob-lnd:
container_name: bob-lnd
hostname: bob-lnd
build:
context: .
dockerfile: docker/lnd/Dockerfile
image: lnd
depends_on:
- bitcoind
env_file: .env
volumes:
- bob-lnd-data:/root/.lnd
command: [
"--noseedbackup",
"--bitcoin.active",
"--bitcoin.node=bitcoind",
"--bitcoin.${BTCD_NETWORK}",
"--bitcoind.rpchost=bitcoind",
"--bitcoind.rpcuser=${BTCD_RPCUSER}",
"--bitcoind.rpcpass=${BTCD_RPCPASS}",
"--bitcoind.zmqpubrawblock=tcp://bitcoind:28332",
"--bitcoind.zmqpubrawtx=tcp://bitcoind:28333",
"--rpclisten=0.0.0.0:10009",
"--listen=0.0.0.0:19735",
"--externalhosts=bob-lnd:19735",
"--debuglevel=info"
]
jupyter:
container_name: jupyter
hostname: jupyter
build:
context: .
dockerfile: docker/jupyter/Dockerfile
image: jupyter
depends_on:
- bitcoind
- ali-lnd
- bob-lnd
env_file: .env
environment:
- GRANT_SUDO=yes
user: root
volumes:
- ./research:/notebooks
- ./:/src/p2oc
- ali-lnd-data:/ali-lnd:ro
- bob-lnd-data:/bob-lnd:ro
ports:
- 8888:8888
p2oc:
container_name: p2oc
hostname: p2oc
build:
context: .
image: p2oc
tty: true
depends_on:
- bitcoind
- ali-lnd
- bob-lnd
env_file: .env
volumes:
- ./:/src/p2oc
- ali-lnd-data:/ali-lnd:ro
- bob-lnd-data:/bob-lnd:ro
entrypoint: /bin/bash
volumes:
ali-lnd-data:
driver_opts:
type: tmpfs
device: tmpfs
bob-lnd-data:
driver_opts:
type: tmpfs
device: tmpfs
# bitcoind-data: