Skip to content

Commit d8074b8

Browse files
committed
bind to 0.0.0.0 option for lgtm
1 parent 2fda8e9 commit d8074b8

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

DEVELOPMENT.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,19 @@ To collect traces and metrics locally, run the Grafana LGTM stack (Loki, Grafana
252252
# Start Grafana LGTM (UI at http://localhost:3000, login: admin/admin)
253253
# Note, if you are developing on a shared server, you can use the same LGTM stack as your peer(s)
254254
# You will be able to sort your metrics, traces, and logs using the ENV configuration (see below)
255+
BIND=127.0.0.1
256+
# YOLO=1 # Uncomment to expose ports externally
257+
if [ -n "$YOLO" ]; then BIND=0.0.0.0; fi
258+
255259
docker run -d --name lgtm \
256-
-p 127.0.0.1:3000:3000 \
257-
-p 127.0.0.1:4317:4317 \
258-
-p 127.0.0.1:4318:4318 \
259-
-p 127.0.0.1:9090:9090 \
260-
-p 127.0.0.1:4040:4040 \
260+
-p $BIND:3000:3000 \
261+
-p $BIND:4317:4317 \
262+
-p $BIND:4318:4318 \
263+
-p $BIND:9090:9090 \
264+
-p $BIND:4040:4040 \
261265
grafana/otel-lgtm:latest
262266

263-
# If developing on a remote server, forward the port to your local machine:
267+
# If developing on a remote server, forward the port to your local machine (or YOLO):
264268
# ssh -L 3001:localhost:3000 your-server (then open http://localhost:3001)
265269

266270
# Enable OTel in .env (set ENV to your name to filter your telemetry)

0 commit comments

Comments
 (0)