Files
deploy-sourcegraph-docker/deploy-pgsql.sh
T
Stephen Gutekanst fffb2cde3d pgsql: rely on PGDATA/PGUSER defaults (fixes #13)
Notice that there was a bug here, this indicates to me that removing env vars
is far more helpful than I thought. It's really easy to make a typo and
introduce subtle bugs that are hard to track down like this.
2018-11-01 18:52:14 -07:00

21 lines
563 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Description: PostgreSQL database for various data.
#
# CPU: 2
# Memory: 1GB
# Disk: 128GB / persistent SSD
# Network: 100mbps
# Liveness probe: 5432/TCP
# Ports exposed to other Sourcegraph services: 5432/TCP
# Ports exposed to the public internet: none
#
docker run --detach \
--name=pgsql \
--network=sourcegraph \
--restart=always \
-v ~/sourcegraph-docker/pgsql-disk:/data/pgdata \
sourcegraph/postgres:9.4@sha256:eccea696a68cf9c7ff668398e80ecfadcac990d5f0b9aef15a107aa94128b632
echo "Deployed pgsql service"