mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
# This file contains the pgsql service definition (the primary Sourcegraph database deployment),
|
|
# as well as the codeintel-db service definition (a separate postgres deployment). Both run postgres.
|
|
# This file is used during the sourcegraph/server -> docker-compose migration process.
|
|
#
|
|
# 🚨This file MUST be kept in sync with the pgsql definition in docker-compose/docker-compose.yaml
|
|
version: '2.4'
|
|
services:
|
|
# 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-12-alpine:162246_2022-07-20_15dd0e0df1cc@sha256:7e6d298ed592e97c7873d687ced2a75e886441bd7d1a9cfd77a2aa5c868b8f09'
|
|
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
|
|
|
|
codeintel-db:
|
|
container_name: codeintel-db
|
|
image: 'index.docker.io/sourcegraph/codeintel-db:162246_2022-07-20_15dd0e0df1cc@sha256:202c609e60f79cd4a8ad10ea92f84324caab6f3cdfdfac19c1226e591ce0208a'
|
|
cpus: 4
|
|
mem_limit: '2g'
|
|
healthcheck:
|
|
test: '/liveness.sh'
|
|
interval: 10s
|
|
timeout: 1s
|
|
retries: 3
|
|
start_period: 15s
|
|
volumes:
|
|
- 'codeintel-db:/data/'
|
|
networks:
|
|
- sourcegraph
|
|
restart: always
|
|
|
|
volumes:
|
|
pgsql:
|
|
codeintel-db:
|
|
networks:
|
|
sourcegraph:
|