mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
This change will require additional actions for users using the pure-docker deployment option upgrading past 3.30.x - Please refer to https://docs.sourcegraph.com/admin/updates/pure_docker for more details.
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Dashboards and graphs for Prometheus metrics.
|
|
#
|
|
# Disk: 2GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: none (HTTP 3000 should be exposed to admins only)
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/grafana-disk"
|
|
./ensure-volume.sh $VOLUME 472
|
|
docker run --detach \
|
|
--name=grafana \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=1 \
|
|
--memory=1g \
|
|
-p 0.0.0.0:3370:3370 \
|
|
-v $VOLUME:/var/lib/grafana \
|
|
-v $(pwd)/../grafana/datasources:/sg_config_grafana/provisioning/datasources \
|
|
-v $(pwd)/../grafana/dashboards:/sg_grafana_additional_dashboards \
|
|
index.docker.io/sourcegraph/grafana:insiders@sha256:9ea6958ed176855ec33a5a3cc632eae257fd227fa3de1f987d96bf05c7e83d66
|
|
|
|
# Add the following lines above if you wish to use an auth proxy with Grafana:
|
|
#
|
|
# -e GF_AUTH_PROXY_ENABLED=true \
|
|
# -e GF_AUTH_PROXY_HEADER_NAME='X-Forwarded-User' \
|
|
# -e GF_SERVER_ROOT_URL='https://grafana.example.com' \
|