mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
Prior to this change, the gitserver disk was not properly mounted which meant that on restart gitserver would have to clone the repository in full from the code host again, rather than using its on-disk mirror which is much faster. This was an oversight, but easily fixed by just properly mounting the disk.
22 lines
597 B
Bash
Executable File
22 lines
597 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Stores clones of repositories to perform Git operations.
|
|
#
|
|
# CPU: 4
|
|
# Memory: 8GB
|
|
# Disk: 200GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 3182/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
docker run --detach \
|
|
--name=gitserver-0 \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
-e SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090 \
|
|
-v ~/sourcegraph-docker/gitserver-0-disk:/data/repos \
|
|
sourcegraph/gitserver:3.0.0-alpha.8
|
|
|
|
echo "Deployed gitserver service" |