Files
deploy-sourcegraph-docker/deploy-replacer.sh
T

27 lines
794 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Backend for replace operations.
#
# Disk: 128GB / non-persistent SSD
# Network: 100mbps
# Liveness probe: GET http://replacer:3185/healthz
# Ports exposed to other Sourcegraph services: 3185/TCP 6060/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/replacer-disk"
./ensure-volume.sh $VOLUME 100
docker run --detach \
--name=replacer \
--network=sourcegraph \
--restart=always \
--cpus=1 \
--memory=512m \
-e GOMAXPROCS=1 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-v $VOLUME:/mnt/cache \
index.docker.io/sourcegraph/replacer:3.15.1@sha256:23c84161980bf3231bb62e48eb5a3db381b774903d462755b94c2653a4c1b333
echo "Deployed replacer service"