mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
* Add pure-docker migrator support * Update pure-docker to latest release
28 lines
844 B
Bash
Executable File
28 lines
844 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 JAEGER_AGENT_HOST=jaeger \
|
|
-v $VOLUME:/mnt/cache \
|
|
index.docker.io/sourcegraph/searcher:3.36.3@sha256:c2ab00f8194fde6eec005bedb4296e86c1262f086e963577f669d480504df016
|
|
|
|
echo "Deployed searcher $1 service"
|