mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-06 09:15:17 -07:00
24 lines
741 B
Bash
Executable File
24 lines
741 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
|
|
#
|
|
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 ~/sourcegraph-docker/replacer-disk:/mnt/cache \
|
|
index.docker.io/sourcegraph/replacer:3.14.2@sha256:b1c68f27a5b0e9ca9924aab9ac77242617d0a523f6c06a4d6de45cca48f0cde1
|
|
|
|
echo "Deployed replacer service" |