mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
37 lines
1.3 KiB
Bash
Executable File
37 lines
1.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Serves the frontend of Sourcegraph via HTTP(S).
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: HTTP GET http://sourcegraph-frontend:3080/healthz
|
|
# Ports exposed to other Sourcegraph services: 6060/TCP
|
|
# Ports exposed to the public internet: 3080 (HTTP) and/or 3443 (HTTPS)
|
|
#
|
|
docker run --detach \
|
|
--name=sourcegraph-frontend \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=2 \
|
|
--memory=4g \
|
|
-e JAEGER_AGENT_HOST='jaeger-agent' \
|
|
-e PGHOST=pgsql \
|
|
-e SRC_GIT_SERVERS=gitserver-0:3178 \
|
|
-e SRC_SYNTECT_SERVER=http://syntect-server:9238 \
|
|
-e SEARCHER_URL=http://searcher-0:3181 \
|
|
-e SYMBOLS_URL=http://symbols-0: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-0-disk:/mnt/cache \
|
|
-p 0.0.0.0:3080:3080 \
|
|
sourcegraph/frontend:3.2.1
|
|
|
|
# Note: SRC_GIT_SERVERS, SEARCHER_URL, and SYMBOLS_URL are space-separated
|
|
# lists which each allow you to specify more container instances for scaling
|
|
# purposes. Be sure to also apply such a change here to the frontend-internal
|
|
# service.
|
|
|
|
echo "Deployed sourcegraph-frontend service"
|