Files
deploy-sourcegraph-docker/pure-docker/deploy-github-proxy.sh
T
Crystal Augustus 4bab5c8c82 Add migrator to pure-docker deployment (#761)
* Add pure-docker migrator support

* Update pure-docker to latest release
2022-02-18 10:44:09 -05:00

27 lines
764 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source ./replicas.sh
# Description: Rate-limiting proxy for the GitHub API.
#
# CPU: 1
# Memory: 1GB
# Disk: 1GB / non-persistent SSD (only for read-only config file)
# Network: 100mbps
# Liveness probe: n/a
# Ports exposed to other Sourcegraph services: 3180/TCP 6060/TCP
# Ports exposed to the public internet: none
#
docker run --detach \
--name=github-proxy \
--network=sourcegraph \
--restart=always \
--cpus=1 \
--memory=1g \
-e GOMAXPROCS=1 \
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
-e JAEGER_AGENT_HOST=jaeger \
index.docker.io/sourcegraph/github-proxy:3.36.3@sha256:0b8f2a3d5751bf2e438ce1784be5cac7da19bdca0a25623f03a64a652c8def0d
echo "Deployed github-proxy service"