-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
199 lines (191 loc) · 4.53 KB
/
docker-compose.yml
File metadata and controls
199 lines (191 loc) · 4.53 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
# Awning v2: Docker Compose
# Static compose file for all services
x-logging: &default-logging
driver: json-file
options:
max-size: "50m"
max-file: "3"
networks:
tor_net:
driver: bridge
awning_net:
driver: bridge
services:
# --- Tor SOCKS proxy and hidden services ---
tor:
build:
context: ./dockerfiles
dockerfile: Dockerfile.tor
args:
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: tor
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 256m
cpus: 0.5
networks:
- tor_net
- awning_net
volumes:
- ./configs/torrc:/etc/tor/torrc:ro
- ./data/tor:/var/lib/tor
# --- Bitcoin Core ---
bitcoin:
build:
context: ./dockerfiles
dockerfile: Dockerfile.bitcoin
args:
BITCOIN_CORE_VERSION: ${BITCOIN_CORE_VERSION}
BITCOIN_ARCH: ${BITCOIN_ARCH}
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: bitcoin
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: ${BITCOIN_MEM_LIMIT:-4g}
cpus: ${BITCOIN_CPUS:-2.0}
networks:
- tor_net
- awning_net
depends_on:
tor:
condition: service_started
volumes:
- ./data/bitcoin:/data/.bitcoin
- ./configs/bitcoin.conf:/data/.bitcoin/bitcoin.conf:ro
command: -datadir=/data/.bitcoin
# --- LND (Lightning Network Daemon) ---
lnd:
build:
context: ./dockerfiles
dockerfile: Dockerfile.lnd
args:
LND_VERSION: ${LND_VERSION}
LND_ARCH: ${LND_ARCH}
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: lnd
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: ${LND_MEM_LIMIT:-512m}
cpus: ${LND_CPUS:-0.5}
networks:
- tor_net
- awning_net
depends_on:
bitcoin:
condition: service_healthy
tor:
condition: service_started
ports:
- "${LND_REST_BIND:-127.0.0.1}:${LND_REST_PORT:-8080}:8080" # REST API (TLS)
environment:
NODE_ALIAS: ${NODE_ALIAS}
volumes:
- ./data/lnd:/data/.lnd
- ./configs/lnd.conf:/data/.lnd/lnd.conf:ro
# --- Electrs (Electrum Rust Server) ---
electrs:
build:
context: ./dockerfiles
dockerfile: Dockerfile.electrs
args:
ELECTRS_VERSION: ${ELECTRS_VERSION}
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: electrs
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: ${ELECTRS_MEM_LIMIT:-2g}
cpus: ${ELECTRS_CPUS:-1.0}
networks:
- tor_net
- awning_net
depends_on:
bitcoin:
condition: service_healthy
ports:
- "${ELECTRS_SSL_BIND:-127.0.0.1}:${ELECTRS_SSL_PORT:-50002}:50002" # Electrs SSL (stunnel)
volumes:
- ./configs/electrs.toml:/data/electrs.toml:ro
- ./data/electrs:/data/electrs_db
healthcheck:
test: ["CMD", "/usr/local/bin/electrs-healthcheck.sh"]
interval: 60s
timeout: 10s
start_period: 30s
retries: 3
# --- Static Channel Backup ---
scb:
build:
context: ./dockerfiles
dockerfile: Dockerfile.scb
args:
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: scb
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 64m
cpus: 0.25
networks:
- awning_net
depends_on:
lnd:
condition: service_started
environment:
SCB_REPO: ${SCB_REPO}
volumes:
- ./data/lnd:/lnd:ro
- ./data/scb:/data
# --- Ride The Lightning (web UI) ---
rtl:
build:
context: ./dockerfiles
dockerfile: Dockerfile.rtl
args:
RTL_VERSION: ${RTL_VERSION:-0.15.8}
UID: ${HOST_UID}
GID: ${HOST_GID}
container_name: rtl
restart: unless-stopped
logging: *default-logging
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
mem_limit: 256m
cpus: 0.5
networks:
- awning_net
depends_on:
lnd:
condition: service_started
ports:
- "${RTL_BIND:-0.0.0.0}:${RTL_PORT:-3001}:3001"
environment:
RTL_CONFIG_PATH: /data/rtl
volumes:
- ./data/lnd:/data/lnd:ro
- ./data/rtl:/data/rtl