mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
* all: replace minio with sourcegraph/blobstore * all: bump image tags for blobstore change * pure-docker: update image tags (manually) Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
28 lines
900 B
Bash
Executable File
28 lines
900 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Description: Backend for text search operations.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: HTTP GET http://searcher:3181/healthz
|
|
# Ports exposed to other Sourcegraph services: 3181/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/searcher-$1-disk"
|
|
./ensure-volume.sh $VOLUME 100
|
|
docker run --detach \
|
|
--name=searcher-$1 \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=2 \
|
|
--memory=2g \
|
|
-e GOMAXPROCS=2 \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
-e 'OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317' \
|
|
-v $VOLUME:/mnt/cache \
|
|
index.docker.io/sourcegraph/searcher:187572_2022-12-06_cbecc5321c7d@sha256:c0d7b580c31e956dc586e3947edd2afb850cf5954e83010236294c57478256da
|
|
|
|
echo "Deployed searcher $1 service"
|