mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-05 08:45:20 -07:00
23 lines
586 B
Bash
Executable File
23 lines
586 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 \
|
|
-v ~/sourcegraph-docker/replacer-disk:/mnt/cache \
|
|
sourcegraph/replacer:3.7.0
|
|
|
|
echo "Deployed replacer service" |