mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-05 16:55:24 -07:00
22 lines
696 B
Bash
Executable File
22 lines
696 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)
|
|
#
|
|
docker run --detach \
|
|
--name=prometheus \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=4 \
|
|
--memory=8g \
|
|
-p 0.0.0.0:9090:9090 \
|
|
-v ~/sourcegraph-docker/prometheus-v2-disk:/prometheus \
|
|
-v $(pwd)/prometheus:/sg_prometheus_add_ons \
|
|
sourcegraph/prometheus:10.0.4@sha256:03af446c1c1d49e6ac395c06a29a207e8c7b59e6aa1fcf156c0bff63ad88d829
|