mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
28 lines
787 B
Bash
Executable File
28 lines
787 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
source ./replicas.sh
|
|
|
|
# Description: Manages background processes.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 3189/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/worker-disk"
|
|
./ensure-volume.sh $VOLUME 100
|
|
docker run --detach \
|
|
--name=worker \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=4 \
|
|
--memory=4g \
|
|
-e GOMAXPROCS=1 \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
-e JAEGER_AGENT_HOST=jaeger \
|
|
-v $VOLUME:/mnt/cache \
|
|
index.docker.io/sourcegraph/worker:3.29.0@sha256:b61d6136988b6abe56ee890440c35a63fb99de6ce5e09a3cb0cbfe7a03a0ec15
|
|
|
|
echo "Deployed worker service"
|