Files
deploy-sourcegraph-docker/docker-compose/db-only-migrate.docker-compose.yaml
T
1b8f530d62 Add in migrator containers (#684)
* Add in migrator containers

* migration: block all services until frontend is up

Only use a single migration container and the generic `up` command

* migrator: remove new_migrations env var

No longer needed

* migrator: Now with 50% less depends

* migrator: add link todocs for running without codeinsights

* migrator: reduce resource usage to 1/4

* migrator: bump migrator version to 3.36.3

* migrator: remove new_migrations

* migrator: re-add depends_on

* migrator: add new_migrations back in to test CI

* migrator: bump version to insiders to align

* update insider shas

* change frontend healthcheck dependency

* tweak frontend healthcheck (#762)

* Remove NEW_MIGRATIONS flag

Co-authored-by: Dave Try <davetry@gmail.com>
Co-authored-by: Michael Lin <mlzc@hey.com>
Co-authored-by: Crystal Augustus <91073224+caugustus-sourcegraph@users.noreply.github.com>
2022-02-18 12:00:27 -05:00

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-alpine:insiders@sha256:5a6badacb3cf2a2bfc039f68746e0d849e95ded1976bf3ef18471008069c5a97'
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:insiders@sha256:cd901b1180229101cc8c6deebda24c14f6224295cd2153cafe0665199499c342'
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: