mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
24 lines
674 B
Bash
Executable File
24 lines
674 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Redis for storing short-lived caches.
|
|
#
|
|
# Disk: 128GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: 6379/TCP
|
|
# Ports exposed to other Sourcegraph services: 6379/TCP 9121/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
VOLUME="$HOME/sourcegraph-docker/redis-cache-disk"
|
|
./ensure-volume.sh $VOLUME 999
|
|
docker run --detach \
|
|
--name=redis-cache \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=1 \
|
|
--memory=6g \
|
|
-v $VOLUME:/redis-data \
|
|
index.docker.io/sourcegraph/redis-cache:3.29.1@sha256:35245d84f0d154d12501ea4b997fa21913939cc4ce7c4de288b44d1d7e50624c
|
|
|
|
echo "Deployed redis-cache service"
|