Files
flyingcakes 7956017158 init
Signed-off-by: Snehit Sah <snehitsah@protonmail.com>
2025-09-14 19:02:59 +05:30

24 lines
496 B
Bash
Executable File

#!/bin/bash
RELEASE=${1:-latest}
#docker pull docker.io/grafana/otel-lgtm:"${RELEASE}"
touch .env
docker run \
--name lgtm \
# -p 3000:3000 \
# -p 4317:4317 \
# -p 4318:4318 \
--rm \
-ti \
-v "$PWD"/container/grafana:/data/grafana \
-v "$PWD"/container/prometheus:/data/prometheus \
-v "$PWD"/container/loki:/data/loki \
-v ./prometheus.yml:/otel-lgtm/prometheus.yaml \
-e GF_PATHS_DATA=/data/grafana \
--env-file .env \
--net=host \
docker.io/grafana/otel-lgtm:"${RELEASE}"