pure-docker: move pure-docker to ./pure-docker (#454)

This change will require additional actions for users using the pure-docker deployment option upgrading past 3.30.x - Please refer to https://docs.sourcegraph.com/admin/updates/pure_docker for more details.
This commit is contained in:
Robert Lin authored and GitHub committed 2021-07-25 20:34:38 +08:00
1 parent a7f22c6871
commit 76ea424bd2
36 files changed
+120 -84

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/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.6-alpine:3.30.0@sha256:439246675646322cf6b22a277ab86d790287bc4c532e2a2f4a4e0538d06cd206
# Sourcegraph requires PostgreSQL 12+. Generally newer versions are better,
# but anything 12 and higher is supported.
echo "Deployed pgsql service"