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.12.3@sha256:f5a40b66614cbb72602e7c31f46232c16919477800a965f5bc5a568c235e7578
|
|
|
|
echo "Deployed replacer service" |