Files
Stephen Gutekanst b5f8cb92a8 all: replace minio with sourcegraph/blobstore (#883)
* all: replace minio with sourcegraph/blobstore
* all: bump image tags for blobstore change
* pure-docker: update image tags (manually)

Signed-off-by: Stephen Gutekanst <stephen@sourcegraph.com>
2022-12-06 13:57:39 -07:00

28 lines
869 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: PostgreSQL database for various data.
#
# Disk: 128GB / persistent SSD
# Network: 100mbps
# Liveness probe: 5432/TCP
# Ports exposed to other Sourcegraph services: 5432/TCP 9187/TCP
# Ports exposed to the public internet: none
#
VOLUME="$HOME/sourcegraph-docker/pgsql-disk"
./ensure-volume.sh $VOLUME 999
docker run --detach \
--name=pgsql \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=2g \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v $VOLUME:/var/lib/postgresql/data/ \
index.docker.io/sourcegraph/postgres-12-alpine:187572_2022-12-06_cbecc5321c7d@sha256:44f6e9a51fafb99573cbd767f20f68913db5a02920c5974e4fa560735d745328
# Sourcegraph requires PostgreSQL 12+. Generally newer versions are better,
# but anything 12 and higher is supported.
echo "Deployed pgsql service"