-
Notifications
You must be signed in to change notification settings - Fork 572
Expand file tree
/
Copy pathdocker-compose.override.yaml
More file actions
59 lines (47 loc) · 1.5 KB
/
docker-compose.override.yaml
File metadata and controls
59 lines (47 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Docker Compose override example of how to configure external databases
x-env-vars-database: &env-vars-database
CODEINSIGHTS_PGDATABASE: sg
CODEINSIGHTS_PGDATASOURCE: ""
CODEINSIGHTS_PGHOST: codeinsights.postgres.example.com
CODEINSIGHTS_PGPASSWORD: super_long_secure_password
CODEINSIGHTS_PGPORT: 5432
CODEINSIGHTS_PGSSLMODE: require
CODEINSIGHTS_PGUSER: sg
CODEINTEL_PGDATABASE: sg
CODEINTEL_PGDATASOURCE: ""
CODEINTEL_PGHOST: codeintel.postgres.example.com
CODEINTEL_PGPASSWORD: super_long_secure_password
CODEINTEL_PGPORT: 5432
CODEINTEL_PGSSLMODE: require
CODEINTEL_PGUSER: sg
PGDATABASE: sg
PGDATASOURCE: ""
PGHOST: pgsql.postgres.example.com
PGPASSWORD: super_long_secure_password
PGPORT: 5432
PGSSLMODE: require
PGUSER: sg
# Uncomment if using AWS RDS with IAM authentication
# PG_CONNECTION_UPDATER: EC2_ROLE_CREDENTIALS
# AWS_STS_REGIONAL_ENDPOINTS: regional
services:
migrator:
depends_on: !reset [] # Remove the dependency on the built-in Postgres databases
environment: !override
<<: *env-vars-database
sourcegraph-frontend-0:
environment:
<<: *env-vars-database
sourcegraph-frontend-internal:
depends_on: !override
migrator:
condition: service_completed_successfully
environment:
<<: *env-vars-database
# Disable built-in databases
codeinsights-db-exporter: !reset {}
codeinsights-db: !reset {}
codeintel-db-exporter: !reset {}
codeintel-db: !reset {}
pgsql-exporter: !reset {}
pgsql: !reset {}