Files
deploy-sourcegraph-docker/deploy-pgsql.sh
T
Stephen Gutekanst 6c67b5bfa7 Release Sourcegraph v3.11.4
Note: If you make use of `CRITICAL_CONFIG_FILE` or `SITE_CONFIG_FILE`, please refer to the [migration notes for Sourcegraph 3.11+](https://docs.sourcegraph.com/admin/migration/3_11).
2020-01-14 18:54:35 -07:00

25 lines
740 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
#
docker run --detach \
--name=pgsql \
--network=sourcegraph \
--restart=always \
--cpus=4 \
--memory=2g \
-v ~/sourcegraph-docker/pgsql-disk:/data/pgdata \
index.docker.io/sourcegraph/postgres-11.4:19-11-14_b084311b@sha256:072481559d559cfd9a53ad77c3688b5cf583117457fd452ae238a20405923297
# Sourcegraph requires PostgreSQL 9.6+. Generally newer versions are better,
# but anything 9.6 and higher is supported.
echo "Deployed pgsql service"