forked from lncm/docker-lnd
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: 0.10/variant-monitoring.patch
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
diff --git Dockerfile Dockerfile | ||
index 131b6c6..e05e0a6 100644 | ||
index 9ae5e1e..c63bd6b 100644 | ||
--- Dockerfile | ||
+++ Dockerfile | ||
@@ -29,7 +29,7 @@ ARG TAGS_LND="signrpc chainrpc" | ||
ARG TAGS_STATIC="osusergo netgo static_build" | ||
@@ -24,7 +24,7 @@ ARG PKG=github.com/lightningnetwork/lnd | ||
ARG TAGS_BASE="autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc" | ||
|
||
# Added by yours truly (@lncm) | ||
-ARG TAGS_EXTRA="" | ||
+ARG TAGS_EXTRA="monitoring" | ||
|
||
# Force Go to use the cgo based DNS resolver. This is required to ensure DNS | ||
# queries required to connect to linked containers succeed | ||
@@ -285,5 +285,11 @@ VOLUME ${DIR}/.lnd/ | ||
|
||
# | ||
@@ -253,5 +253,11 @@ VOLUME $DIR/.lnd/ | ||
# Expose lnd ports (rest, p2p, watchtower, rpc respectively) | ||
EXPOSE 8080 9735 9911 10009 | ||
|
||
+# Expose monitoring/Prometheus port | ||
+EXPOSE 8989 | ||
+ | ||
# Specify the start command and entrypoint as the lnd daemon | ||
ENTRYPOINT ["lnd"] | ||
ENTRYPOINT ["/bin/lnd"] | ||
+ | ||
+# Okay to hardcode them here, as it's in a variant that specifically wants Prometheus | ||
+CMD ["--prometheus.enable", "--prometheus.listen=0.0.0.0:8989"] |