mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
* 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>
27 lines
745 B
Bash
Executable File
27 lines
745 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Performs database migrations
|
|
#
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
|
|
docker run --detach \
|
|
--name=migrator \
|
|
--network=sourcegraph \
|
|
--restart=on-failure \
|
|
--cpus=1 \
|
|
--memory=1g \
|
|
-e PGHOST=pgsql \
|
|
-e PGUSER=sg \
|
|
-e CODEINTEL_PGUSER=sg \
|
|
-e CODEINTEL_PGHOST=codeintel-db \
|
|
-e CODEINSIGHTS_PGDATASOURCE=postgres://postgres:password@codeinsights-db:5432/postgres \
|
|
index.docker.io/sourcegraph/migrator:187572_2022-12-06_cbecc5321c7d@sha256:93fc175df594738a98a62f2057271824cdb674b0e63bedac9dc7cb0f04db76bb \
|
|
up -db=all
|
|
|
|
echo "Deployed migrator service"
|