-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (99 loc) · 2.29 KB
/
docker-compose.yml
File metadata and controls
108 lines (99 loc) · 2.29 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: omop-lite
# Common configurations
x-omop-lite-common: &omop-lite-common
build:
context: .
dockerfile: Dockerfile
environment:
- SCHEMA_NAME=public
- SYNTHETIC=true
volumes:
- ./data:/data
x-postgres-common: &postgres-common
container_name: db
user: postgres
environment:
- POSTGRES_DB=omop
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "postgres"]
interval: 1s
timeout: 5s
retries: 10
services:
postgres:
<<: *postgres-common
image: postgres:16
profiles: [postgres]
pgvector:
<<: *postgres-common
image: pgvector/pgvector:pg17
profiles: [text-search]
# Default omop-lite service
omop-lite:
<<: *omop-lite-common
depends_on:
postgres:
condition: service_healthy
profiles: [postgres]
# omop-lite service for text-search profile
omop-lite-search:
<<: *omop-lite-common
depends_on:
pgvector:
condition: service_healthy
profiles: [text-search]
omop-lite-sqlserver:
platform: "linux/amd64"
build:
context: .
dockerfile: Dockerfile
environment:
- SCHEMA_NAME=cdm
- SYNTHETIC=true
- DB_NAME=master
- DB_USER=sa
- DB_PASSWORD=Password123!
- DB_HOST=sqlserver
- DB_PORT=1433
- DIALECT=mssql
volumes:
- ./data:/data
depends_on:
- sqlserver
profiles: [sqlserver]
sqlserver:
platform: "linux/amd64"
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=Password123!
- MSSQL_PID=Developer
ports:
- "1433:1433"
healthcheck:
test: /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "Password123!" -Q "SELECT 1" || exit 1
interval: 10s
timeout: 3s
retries: 10
start_period: 10s
profiles: [sqlserver]
text-search:
build:
context: ./text-search
dockerfile: Dockerfile
environment:
- DB_HOST=db
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=password
- DB_NAME=omop
- SCHEMA_NAME=public
volumes:
- ./text-search:/text-search:ro
depends_on:
omop-lite-search:
condition: service_completed_successfully
profiles: [text-search]