mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 08:15:24 -07:00
This PR removes the `replacer` service, which is no longer used in Sourcegraph. See https://github.com/sourcegraph/sourcegraph/pull/12480 Note: This PR cannot yet be merged, it is blocked on: - https://github.com/sourcegraph/sourcegraph/issues/12544 being fixed - `replacer` being removed again from our app.
40 lines
1.6 KiB
Bash
Executable File
40 lines
1.6 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Description: Serves the internal Sourcegraph frontend API.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 3090/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/sourcegraph-frontend-internal-0-disk"
|
|
./ensure-volume.sh $VOLUME 100
|
|
docker run --detach \
|
|
--name=sourcegraph-frontend-internal \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=4 \
|
|
--memory=8g \
|
|
-e DEPLOY_TYPE=pure-docker \
|
|
-e GOMAXPROCS=4 \
|
|
-e PGHOST=pgsql \
|
|
-e SRC_GIT_SERVERS="$(addresses "gitserver-" $NUM_GITSERVER ":3178")" \
|
|
-e SRC_SYNTECT_SERVER=http://syntect-server:9238 \
|
|
-e SEARCHER_URL="$(addresses "http://searcher-" $NUM_SEARCHER ":3181")" \
|
|
-e SYMBOLS_URL="$(addresses "http://symbols-" $NUM_SYMBOLS ":3184")" \
|
|
-e INDEXED_SEARCH_SERVERS="$(addresses "zoekt-webserver-" $NUM_INDEXED_SEARCH ":6070")" \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
-e REPO_UPDATER_URL=http://repo-updater:3182 \
|
|
-e PRECISE_CODE_INTEL_BUNDLE_MANAGER_URL=http://precise-code-intel-bundle-manager:3187 \
|
|
-e GRAFANA_SERVER_URL=http://grafana:3000 \
|
|
-e JAEGER_SERVER_URL=http://jaeger:16686 \
|
|
-e GITHUB_BASE_URL=http://github-proxy:3180 \
|
|
-e PROMETHEUS_URL=http://prometheus:9090 \
|
|
-v $VOLUME:/mnt/cache \
|
|
index.docker.io/sourcegraph/frontend:3.18.0@sha256:bd88d2e27210a1d429fea09f6fbd8d6c451d50de8d7c65bc379da3e14d6d8b73
|
|
|
|
echo "Deployed sourcegraph-frontend-internal service"
|