mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 08:15:24 -07:00
22 lines
595 B
Bash
Executable File
22 lines
595 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 \
|
|
-e PGDATA=/data/pgdata \
|
|
-e POSTGRES_USER=sg \
|
|
-v ~/sourcegraph-docker/pgsql-disk:/data/pgdata \
|
|
sourcegraph/postgres:9.4@sha256:eccea696a68cf9c7ff668398e80ecfadcac990d5f0b9aef15a107aa94128b632
|
|
|
|
echo "Deployed pgsql service" |