mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-04 00:05:19 -07:00
622 lines
21 KiB
YAML
622 lines
21 KiB
YAML
version: '2.4'
|
|
services:
|
|
# Description: Acts as a reverse proxy for all of the sourcegraph-frontend instances
|
|
#
|
|
# Disk: 1GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: 80 (HTTP) and 443 (HTTPS)
|
|
#
|
|
# Sourcegraph ships with a few builtin templates that cover common HTTP/HTTPS configurations:
|
|
# - HTTP only (default)
|
|
# - HTTPS with Let's Encrypt
|
|
# - HTTPS with custom certificates
|
|
#
|
|
# Follow the directions in the comments below to swap between these configurations.
|
|
#
|
|
# If none of these built-in configurations suit your needs, then you can create your own Caddyfile, see:
|
|
# https://caddyserver.com/docs/caddyfile
|
|
caddy:
|
|
container_name: caddy
|
|
image: 'index.docker.io/caddy/caddy:alpine@sha256:ef2f47730caa12cb7d0ba944c048b8e48f029d5e0ff861840fa2b8f1868e1966'
|
|
cpus: 4
|
|
mem_limit: '4g'
|
|
environment:
|
|
- 'XDG_DATA_HOME=/caddy-storage/data'
|
|
- 'XDG_CONFIG_HOME=/caddy-storage/config'
|
|
- 'SRC_FRONTEND_ADDRESSES="sourcegraph-frontend-0:3080"'
|
|
# Uncomment & update this line when using Let's Encrypt or custom HTTPS certificates:
|
|
# - 'SRC_SITE_ADDRESS="sourcegraph.example.com"'
|
|
#
|
|
# Uncomment & update the following line when using HTTPS with Let's Encrypt
|
|
# - 'SRC_ACME_EMAIL=admin@example.com'
|
|
volumes:
|
|
- 'caddy:/caddy-storage'
|
|
#
|
|
# Comment out the following line when using HTTPS with either Let's Encrypt or custom certficates
|
|
- '../caddy/builtins/http.Caddyfile:/etc/caddy/Caddyfile'
|
|
#
|
|
# Uncomment the following line when using HTTPS with Let's Encrypt's staging environment
|
|
# - '../caddy/builtins/https.lets-encrypt-staging.Caddyfile:/etc/caddy/Caddyfile'
|
|
#
|
|
# Uncomment the following line when using HTTPS with Let's Encrypt's production environment
|
|
# IMPORTANT: Strongly recommended to test with the staging configuration above first, see that file for details.
|
|
# - '../caddy/builtins/https.lets-encrypt-prod.Caddyfile:/etc/caddy/Caddyfile'
|
|
#
|
|
# Uncomment the following line when using HTTPS with custom certificates
|
|
# - '../caddy/builtins/https.custom-cert.Caddyfile:/etc/caddy/Caddyfile'
|
|
#
|
|
# Uncomment / update the following line when using HTTPS with custom certficates
|
|
# - '/LOCAL/CERT/PATH.pem:/sourcegraph.pem'
|
|
#
|
|
# Uncomment / update the following line when using HTTPS with custom certficates
|
|
# - '/LOCAL/KEY/PATH.pem:/sourcegraph.key'
|
|
ports:
|
|
- '0.0.0.0:80:80'
|
|
- '0.0.0.0:443:443'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Serves the frontend of Sourcegraph via HTTP(S).
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 6060/TCP, 3080 (HTTP), and/or 3443 (HTTPS)
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
# Note: SRC_GIT_SERVERS, SEARCHER_URL, and SYMBOLS_URL are space-separated
|
|
# lists which each allow you to specify more container instances for scaling
|
|
# purposes. Be sure to also apply such a change here to the frontend-internal
|
|
# service.
|
|
sourcegraph-frontend-0:
|
|
container_name: sourcegraph-frontend-0
|
|
image: 'index.docker.io/sourcegraph/frontend:3.14.2@sha256:44b0221dd9ee60393b3c7273b1214b7ae64cbbb4a8e2b5bcf9d06e521557f0c6'
|
|
cpus: 4
|
|
mem_limit: '8g'
|
|
environment:
|
|
- GOMAXPROCS=12
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
- PGHOST=pgsql
|
|
- 'SRC_GIT_SERVERS=gitserver-0:3178'
|
|
- 'SRC_SYNTECT_SERVER=http://syntect-server:9238'
|
|
- 'SEARCHER_URL=http://searcher-0:3181'
|
|
- 'SYMBOLS_URL=http://symbols-0:3184'
|
|
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- 'REPO_UPDATER_URL=http://repo-updater:3182'
|
|
- 'REPLACER_URL=http://replacer:3185'
|
|
# remove after 3.15
|
|
- 'LSIF_SERVER_URL=http://lsif-server:3186'
|
|
# used after 3.15
|
|
- 'LSIF_API_SERVER_URL=http://lsif-server:3186'
|
|
- 'GRAFANA_SERVER_URL=http://grafana:3370'
|
|
- 'GITHUB_BASE_URL=http://github-proxy:3180'
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:3080/healthz' -O /dev/null || exit 1"
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 300s
|
|
volumes:
|
|
- 'sourcegraph-frontend-0:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Serves the internal Sourcegraph frontend API.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3090/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
sourcegraph-frontend-internal:
|
|
container_name: sourcegraph-frontend-internal
|
|
image: 'index.docker.io/sourcegraph/frontend:3.14.2@sha256:44b0221dd9ee60393b3c7273b1214b7ae64cbbb4a8e2b5bcf9d06e521557f0c6'
|
|
cpus: 4
|
|
mem_limit: '8g'
|
|
environment:
|
|
- GOMAXPROCS=4
|
|
- PGHOST=pgsql
|
|
- 'SRC_GIT_SERVERS=gitserver-0:3178'
|
|
- 'SRC_SYNTECT_SERVER=http://syntect-server:9238'
|
|
- 'SEARCHER_URL=http://searcher-0:3181'
|
|
- 'SYMBOLS_URL=http://symbols-0:3184'
|
|
- 'INDEXED_SEARCH_SERVERS=zoekt-webserver-0:6070'
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- 'REPO_UPDATER_URL=http://repo-updater:3182'
|
|
- 'REPLACER_URL=http://replacer:3185'
|
|
# remove after 3.15
|
|
- 'LSIF_SERVER_URL=http://lsif-server:3186'
|
|
# used after 3.15
|
|
- 'LSIF_API_SERVER_URL=http://lsif-server:3186'
|
|
- 'GRAFANA_SERVER_URL=http://grafana:3000'
|
|
- 'GITHUB_BASE_URL=http://github-proxy:3180'
|
|
volumes:
|
|
- 'sourcegraph-frontend-internal-0:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Stores clones of repositories to perform Git operations.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3178/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
gitserver-0:
|
|
container_name: gitserver-0
|
|
image: 'index.docker.io/sourcegraph/gitserver:3.14.2@sha256:9374262a86f62931856d44912f035467e58b03fcfec82081ba5e486dad5be677'
|
|
cpus: 4
|
|
mem_limit: '8g'
|
|
environment:
|
|
- GOMAXPROCS=4
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
volumes:
|
|
- 'gitserver-0:/data/repos'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Backend for indexed text search operations.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 6072/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
zoekt-indexserver-0:
|
|
container_name: zoekt-indexserver-0
|
|
image: 'index.docker.io/sourcegraph/search-indexer:insiders@sha256:354ed968e62a7d011b647476a63116813aea23bdada0a2fc4322df5381acb6b3'
|
|
mem_limit: '16g'
|
|
environment:
|
|
- GOMAXPROCS=8
|
|
- 'HOSTNAME=zoekt-webserver-0:6070'
|
|
- 'SRC_FRONTEND_INTERNAL=http://sourcegraph-frontend-internal:3090'
|
|
volumes:
|
|
- 'zoekt-0-shared:/data/index'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
hostname: zoekt-indexserver-0
|
|
# Description: Backend for indexed text search operations.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 6070/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
zoekt-webserver-0:
|
|
container_name: zoekt-webserver-0
|
|
image: 'index.docker.io/sourcegraph/indexed-searcher:insiders@sha256:d48de388d28899fd0c3ad0d6f84d466b3a1f533f6b967a713918d438ab8bc63c'
|
|
cpus: 8
|
|
mem_limit: '50g'
|
|
environment:
|
|
- GOMAXPROCS=8
|
|
- 'HOSTNAME=zoekt-webserver-0:6070'
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:6070/healthz' -O /dev/null || exit 1"
|
|
interval: 1s
|
|
timeout: 10s
|
|
retries: 1
|
|
volumes:
|
|
- 'zoekt-0-shared:/data/index'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
hostname: zoekt-webserver-0
|
|
|
|
# Description: Backend for text search operations.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3181/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
searcher-0:
|
|
container_name: searcher-0
|
|
image: 'index.docker.io/sourcegraph/searcher:3.14.2@sha256:a698d805219e715c87cec8fadc37a50ad6c1b7c41e47589b3a162dbe3d45ac97'
|
|
cpus: 2
|
|
mem_limit: '2g'
|
|
environment:
|
|
- GOMAXPROCS=2
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:3181/healthz' -O /dev/null || exit 1"
|
|
interval: 1s
|
|
timeout: 10s
|
|
retries: 1
|
|
volumes:
|
|
- 'searcher-0:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Rate-limiting proxy for the GitHub API.
|
|
#
|
|
# CPU: 1
|
|
# Memory: 1GB
|
|
# Disk: 1GB / non-persistent SSD (only for read-only config file)
|
|
# Ports exposed to other Sourcegraph services: 3180/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
github-proxy:
|
|
container_name: github-proxy
|
|
image: 'index.docker.io/sourcegraph/github-proxy:3.14.2@sha256:0369a42645db81b4211cec54ca685daf365c785e8e213473505df3193ccacccc'
|
|
cpus: 1
|
|
mem_limit: '1g'
|
|
environment:
|
|
- GOMAXPROCS=1
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: LSIF HTTP server for code intelligence.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3186/TCP (server) 3187/TCP (worker)
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
lsif-server:
|
|
container_name: lsif-server
|
|
image: 'index.docker.io/sourcegraph/lsif-server:3.14.2@sha256:2d6f63203c5f7fa542fe4deb6424e502cd0ca94dec9c76e40ef63b769c391367'
|
|
cpus: 2
|
|
mem_limit: '2g'
|
|
environment:
|
|
- GOMAXPROCS=2
|
|
- LSIF_STORAGE_ROOT=/lsif-storage
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:3186/ping' -O /dev/null || exit 1"
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 1
|
|
start_period: 60s
|
|
volumes:
|
|
- 'lsif-server:/lsif-storage'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Saved search query runner / notification service.
|
|
#
|
|
# Disk: 1GB / non-persistent SSD (only for read-only config file)
|
|
# Network: 100mbps
|
|
# Liveness probe: n/a
|
|
# Ports exposed to other Sourcegraph services: 3183/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
query-runner:
|
|
container_name: query-runner
|
|
image: 'index.docker.io/sourcegraph/query-runner:3.14.2@sha256:8a22d88a96435755fdcd25aac6b0f395e054c85b863adbfc5f78314b1c0c91a7'
|
|
cpus: 1
|
|
mem_limit: '1g'
|
|
environment:
|
|
- GOMAXPROCS=1
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Backend for replace operations.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3185/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
replacer:
|
|
container_name: replacer
|
|
image: 'index.docker.io/sourcegraph/replacer:3.14.2@sha256:b1c68f27a5b0e9ca9924aab9ac77242617d0a523f6c06a4d6de45cca48f0cde1'
|
|
cpus: 1
|
|
mem_limit: '512m'
|
|
environment:
|
|
- GOMAXPROCS=1
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:3185/healthz' -O /dev/null || exit 1"
|
|
interval: 1s
|
|
timeout: 10s
|
|
retries: 1
|
|
volumes:
|
|
- 'replacer:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Handles repository metadata (not Git data) lookups and updates from external code hosts and other similar services.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3182/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
repo-updater:
|
|
container_name: repo-updater
|
|
image: 'index.docker.io/sourcegraph/repo-updater:3.14.2@sha256:f7de73c60553f102c8b1d51afc47a3b95bad331c02513cb3d143bfc39b54fff8'
|
|
cpus: 4
|
|
mem_limit: '4g'
|
|
environment:
|
|
- GOMAXPROCS=1
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
- 'GITHUB_BASE_URL=http://github-proxy:3180'
|
|
volumes:
|
|
- 'repo-updater:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Backend for syntax highlighting operations.
|
|
#
|
|
# Disk: none
|
|
# Ports exposed to other Sourcegraph services: 9238/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
syntect-server:
|
|
container_name: syntect-server
|
|
image: 'index.docker.io/sourcegraph/syntax-highlighter:insiders@sha256:333abb45cfaae9c9d37e576c3853843b00eca33a40a7c71f6b93211ed96528df'
|
|
cpus: 4
|
|
mem_limit: '6g'
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:9238/health' -O /dev/null || exit 1"
|
|
interval: 1s
|
|
timeout: 5s
|
|
retries: 1
|
|
start_period: 5s
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Backend for symbols operations.
|
|
#
|
|
# Disk: 128GB / non-persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 3184/TCP 6060/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
symbols-0:
|
|
container_name: symbols-0
|
|
image: 'index.docker.io/sourcegraph/symbols:3.14.2@sha256:654d15355a34dcfa610fb05f44f2e1c389571b7534d295fa389f63ba958c7df4'
|
|
cpus: 2
|
|
mem_limit: '4g'
|
|
environment:
|
|
- GOMAXPROCS=2
|
|
- 'SRC_FRONTEND_INTERNAL=sourcegraph-frontend-internal:3090'
|
|
- JAEGER_AGENT_HOST=jaeger-agent
|
|
healthcheck:
|
|
test: "wget -q 'http://127.0.0.1:3184/healthz' -O /dev/null || exit 1"
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 1
|
|
start_period: 60s
|
|
volumes:
|
|
- 'symbols-0:/mnt/cache'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Prometheus collects metrics and aggregates them into graphs.
|
|
#
|
|
# Disk: 200GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: none (HTTP 9090 should be exposed to admins only)
|
|
#
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: 'index.docker.io/sourcegraph/prometheus:insiders@sha256:6ee6e6bf73a85cfa0231c554f79c343e7c643ac6f24358ad16cd3815d758432d'
|
|
cpus: 4
|
|
mem_limit: '8g'
|
|
volumes:
|
|
- 'prometheus-v2:/prometheus'
|
|
- '../prometheus:/sg_prometheus_add_ons'
|
|
ports:
|
|
- '0.0.0.0:9090:9090'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Dashboards and graphs for Prometheus metrics.
|
|
#
|
|
# Disk: 100GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: none
|
|
# Ports exposed to the public internet: none (HTTP 3000 should be exposed to admins only)
|
|
#
|
|
# Add the following environment variables if you wish to use an auth proxy with Grafana:
|
|
#
|
|
# 'GF_AUTH_PROXY_ENABLED=true'
|
|
# 'GF_AUTH_PROXY_HEADER_NAME='X-Forwarded-User'
|
|
# 'GF_SERVER_ROOT_URL='https://grafana.example.com'
|
|
grafana:
|
|
container_name: grafana
|
|
image: 'index.docker.io/sourcegraph/grafana:insiders@sha256:08f61290b90aee11eb8b4fe8d4f9258622971d0695400d0839eefaca175c4979'
|
|
cpus: 1
|
|
mem_limit: '1g'
|
|
volumes:
|
|
- 'grafana:/var/lib/grafana'
|
|
- '../grafana/datasources:/sg_config_grafana/provisioning/datasources'
|
|
- '../grafana/dashboards:/sg_grafana_additional_dashboards'
|
|
ports:
|
|
- '0.0.0.0:3370:3370'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Publishes Prometheus metrics about Docker containers.
|
|
#
|
|
# Disk: none
|
|
# Ports exposed to other Sourcegraph services: 8080/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
cadvisor:
|
|
container_name: cadvisor
|
|
image: 'google/cadvisor:v0.33.0@sha256:47f1f8c02a3acfab77e74e2ec7acc0d475adc180ddff428503a4ce63f3d6061b'
|
|
cpus: 1
|
|
mem_limit: '1g'
|
|
volumes:
|
|
- '/:/rootfs:ro'
|
|
- '/var/run:/var/run:ro'
|
|
- '/sys:/sys:ro'
|
|
- '/var/lib/docker/:/var/lib/docker:ro'
|
|
- '/dev/disk/:/dev/disk:ro'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# # Description: Jaeger agent which is local to the host machine (containers on
|
|
# # the machine send trace information to it and it relays to the collector).
|
|
# #
|
|
# # Disk: none
|
|
# # Ports exposed to other Sourcegraph services: 5775/UDP 6831/UDP 6832/UDP (on the same host machine)
|
|
# # Ports exposed to the public internet: none
|
|
# #
|
|
# jaeger-agent:
|
|
# container_name: jaeger-agent
|
|
# image: 'index.docker.io/jaegertracing/jaeger-agent@sha256:7ad33c19fd66307f2a3c07c95eb07c335ddce1b487f6b6128faa75d042c496cb'
|
|
# cpus: 1
|
|
# mem_limit: '1g'
|
|
# environment:
|
|
# - "COLLECTOR_HOST_PORT='jaeger-collector:14267'"
|
|
# networks:
|
|
# - sourcegraph
|
|
# restart: always
|
|
|
|
# # Description: Jaeger's Cassandra database for storing traces.
|
|
# #
|
|
# # Disk: 128GB / persistent SSD
|
|
# # Ports exposed to other Sourcegraph services: 9042/TCP
|
|
# # Ports exposed to the public internet: none
|
|
# #
|
|
# jaeger-cassandra:
|
|
# container_name: jaeger-cassandra
|
|
# image: 'index.docker.io/library/cassandra:3.11.4@sha256:9f1d47fd23261c49f226546fe0134e6d4ad0570b7ea3a169c521005cb8369a32'
|
|
# cpus: 4
|
|
# mem_limit: '8g'
|
|
# environment:
|
|
# - 'HEAP_NEWSIZE=1G'
|
|
# - 'MAX_HEAP_SIZE=6G'
|
|
# - 'CASSANDRA_DC=sourcegraph'
|
|
# - 'CASSANDRA_RACK=rack1'
|
|
# - 'CASSANDRA_ENDPOINT_SNITCH=GossipingPropertyFileSnitch'
|
|
# volumes:
|
|
# - 'jaeger-cassandra:/var/lib/cassandra'
|
|
# networks:
|
|
# - sourcegraph
|
|
# restart: always
|
|
|
|
# # Description: Receives traces from Jaeger agents.
|
|
# #
|
|
# # Disk: none
|
|
# # Ports exposed to other Sourcegraph services: 14267/TCP
|
|
# # Ports exposed to the public internet: none
|
|
# #
|
|
# jaeger-collector:
|
|
# container_name: jaeger-collector
|
|
# image: 'index.docker.io/jaegertracing/jaeger-collector:1.11@sha256:0b6d28bb52410f7b50c0f0fc16d7ee391e2e3eca47b713ac88d0891ca8a63cb9'
|
|
# cpus: 1
|
|
# mem_limit: '1g'
|
|
# environment:
|
|
# - SPAN_STORAGE_TYPE=cassandra
|
|
# - CASSANDRA_SERVERS=jaeger-cassandra
|
|
# - CASSANDRA_KEYSPACE=jaeger_v1_sourcegraph
|
|
# networks:
|
|
# - sourcegraph
|
|
# restart: always
|
|
|
|
# # Description: Jaeger frontend for querying traces.
|
|
# #
|
|
# # Disk: none
|
|
# # Ports exposed to other Sourcegraph services: none
|
|
# # Ports exposed to the public internet: none (HTTP 16686 should be exposed to admins only)
|
|
# #
|
|
# jaeger-query:
|
|
# container_name: jaeger-query
|
|
# image: 'index.docker.io/jaegertracing/jaeger-query:1.11@sha256:cddc521d0166c868931282685a863368ae2c14c4de0c1be38e388ece3080439e'
|
|
# cpus: 1
|
|
# mem_limit: '1g'
|
|
# environment:
|
|
# - SPAN_STORAGE_TYPE=cassandra
|
|
# - CASSANDRA_SERVERS=jaeger-cassandra
|
|
# - CASSANDRA_KEYSPACE=jaeger_v1_sourcegraph
|
|
# - CASSANDRA_LOCAL_DC=sourcegraph
|
|
# ports:
|
|
# - '0.0.0.0:16686:16686'
|
|
# networks:
|
|
# - sourcegraph
|
|
# restart: always
|
|
|
|
# Description: PostgreSQL database for various data.
|
|
#
|
|
# Disk: 128GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 5432/TCP 9187/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
pgsql:
|
|
container_name: pgsql
|
|
image: 'index.docker.io/sourcegraph/postgres-11.4:insiders@sha256:072481559d559cfd9a53ad77c3688b5cf583117457fd452ae238a20405923297'
|
|
cpus: 4
|
|
mem_limit: '2g'
|
|
healthcheck:
|
|
test: '/liveness.sh'
|
|
interval: 10s
|
|
timeout: 1s
|
|
retries: 3
|
|
start_period: 15s
|
|
volumes:
|
|
- 'pgsql:/data/'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
# Description: Redis for storing short-lived caches.
|
|
#
|
|
# Disk: 128GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 6379/TCP 9121/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
redis-cache:
|
|
container_name: redis-cache
|
|
image: 'index.docker.io/sourcegraph/redis-cache:insiders@sha256:7820219195ab3e8fdae5875cd690fed1b2a01fd1063bd94210c0e9d529c38e56'
|
|
cpus: 1
|
|
mem_limit: '6g'
|
|
volumes:
|
|
- 'redis-cache:/redis-data'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
# Description: Redis for storing semi-persistent data like user sessions.
|
|
#
|
|
# Disk: 128GB / persistent SSD
|
|
# Ports exposed to other Sourcegraph services: 6379/TCP 9121/TCP
|
|
# Ports exposed to the public internet: none
|
|
#
|
|
redis-store:
|
|
container_name: redis-store
|
|
image: 'index.docker.io/sourcegraph/redis-store:insiders@sha256:e8467a8279832207559bdfbc4a89b68916ecd5b44ab5cf7620c995461c005168'
|
|
cpus: 1
|
|
mem_limit: '6g'
|
|
volumes:
|
|
- 'redis-store:/redis-data'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
volumes:
|
|
caddy:
|
|
gitserver-0:
|
|
grafana:
|
|
#jaeger-cassandra:
|
|
lsif-server:
|
|
pgsql:
|
|
prometheus-v2:
|
|
redis-cache:
|
|
redis-store:
|
|
replacer:
|
|
repo-updater:
|
|
searcher-0:
|
|
sourcegraph-frontend-0:
|
|
sourcegraph-frontend-internal-0:
|
|
symbols-0:
|
|
zoekt-0-shared:
|
|
networks:
|
|
sourcegraph:
|