mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
23 lines
718 B
Bash
Executable File
23 lines
718 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Description: Serves the frontend of Sourcegraph via HTTP(S).
|
|
#
|
|
# Disk: 1GB / persistent (can be discarded, only contains self-signed TLS cert)
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 6060/TCP
|
|
# Ports exposed to the public internet: 2633 (HTTPS); optionally behind a firewall for extra security
|
|
#
|
|
docker run --detach \
|
|
--name=management-console \
|
|
--network=sourcegraph \
|
|
--restart=always \
|
|
--cpus=1 \
|
|
--memory=512m \
|
|
-v ~/sourcegraph-docker/management-console-disk:/etc/sourcegraph \
|
|
-e PGHOST=pgsql \
|
|
-p 0.0.0.0:2633:2633 \
|
|
sourcegraph/management-console:3.2.1
|
|
|
|
echo "Deployed management-console service" |