-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into promote/release-v5.11.3601
- Loading branch information
Showing
2 changed files
with
96 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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/postgresql-16:5.11.0@sha256:d9d6b98e9b3f027d625af1587e7658f7c16b68cad337440977953541321acdf1' | ||
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/postgresql-16:5.11.0@sha256:d9d6b98e9b3f027d625af1587e7658f7c16b68cad337440977953541321acdf1' | ||
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters