diff --git a/Dockerfile b/Dockerfile index a23e793..f65e372 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,6 @@ RUN case "$(uname -m)" in \ && tar -xjvf monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2 --strip-components 1 \ && rm -f monero-linux-${ARCH}-${MONERO_VERSION}.tar.bz2 - ################## # -- exporter -- # ################## diff --git a/entrypoint.sh b/entrypoint.sh index 71c8aa2..d1c5f7b 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,9 +1,11 @@ #!/bin/bash -/opt/monero/monero-exporter \ - --bind-addr "${EXPORTER_BIND:-":9000"}" \ - --monero-addr "http://127.0.0.1:18081" \ - --telemetry-path "${EXPORTER_PATH:-"/metrics"}" & +if [ "${EXPORTER_ENABLED:-"true"}" = "true" ]; then + /opt/monero/monero-exporter \ + --bind-addr "${EXPORTER_BIND:-":9000"}" \ + --monero-addr "http://127.0.0.1:18081" \ + --telemetry-path "${EXPORTER_PATH:-"/metrics"}" & +fi /opt/monero/monerod "$@"