-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-frontend-internal.sh
More file actions
executable file
·31 lines (29 loc) · 1.07 KB
/
deploy-frontend-internal.sh
File metadata and controls
executable file
·31 lines (29 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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
#
docker run --detach \
--name=sourcegraph-frontend-internal \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=4g \
-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 SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e REPO_UPDATER_URL=http://repo-updater:3182 \
-e ZOEKT_HOST=zoekt-webserver:6070 \
-v ~/sourcegraph-docker/sourcegraph-frontend-internal-0-disk:/mnt/cache \
sourcegraph/frontend:3.2.4
echo "Deployed sourcegraph-frontend-internal service"