mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-05 16:55:24 -07:00
* Add pure-docker migrator support * Update pure-docker to latest release
25 lines
833 B
Bash
Executable File
25 lines
833 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Prometheus collects metrics and aggregates them into graphs.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: none (HTTP 9090 should be exposed to admins only)
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/prometheus-v2-disk"
|
|
./ensure-volume.sh $VOLUME 100
|
|
docker run --detach \
|
|
--name=prometheus \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=4 \
|
|
--memory=8g \
|
|
-p 0.0.0.0:9090:9090 \
|
|
-v $VOLUME:/prometheus \
|
|
-v $(pwd)/../prometheus:/sg_prometheus_add_ons \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
index.docker.io/sourcegraph/prometheus:3.36.3@sha256:01e102854f9d5888cd961f3aa8af416c2d0336b8673eefd8b2c7a095246fc130
|