mirror of
https://github.com/RustyRaptor/deploy-sourcegraph-docker.git
synced 2026-12-03 15:55:17 -07:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
# This file contains only the pgsql service definition, and 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.6:3.29.0@sha256:cf3eb6a0a6e61a3dfab2394e01565ecb49082f40fd616210bf6a843fa8e82be6'
|
|
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:3.29.0@sha256:35040317490324a15e1259c9023a726eb27c694530f6f8877e87d337c7b97778'
|
|
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:
|