forked from DARPA-ASKEM/simulation-integration
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
221 lines (220 loc) · 5.58 KB
/
docker-compose.yaml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
---
# simulation integration docker compose for testing by Matthew Printz
version: '3'
services:
data-service:
image: ghcr.io/darpa-askem/data-service:latest
environment:
DATASET_STORAGE_BASE_URL: s3://datasets/
STORAGE_HOST: http://minio:9000
S3_BUCKET: askem
S3_DATASET_PATH: datasets
S3_RESULT_PATH: simulations
OPENAI_KEY: sk
SQL_URL: data-service-dev-db
SQL_PORT: 5432
SQL_USER: dev
SQL_PASSWORD: dev
NEO4J_ENABLED: true
NEO4J_driver: neo4j://neo4j:7687
AWS_ACCESS_KEY_ID: miniouser
AWS_SECRET_ACCESS_KEY: miniopass
ES_URL: http://elasticsearch:9200
ELASTIC_PASSWORD: tdsElasticPass
KIBANA_PASSWORD: tdsKibanaPass
depends_on:
data-service-migrations:
condition: service_completed_successfully
neo4j:
condition: service_started
minio:
condition: service_started
ports:
- 8000
minio:
image: ghcr.io/darpa-askem/data-service-storage:latest
environment:
S3_BUCKET: askem
S3_DATASET_PATH: "datasets"
S3_RESULTS_PATH: "simulations"
MINIO_ROOT_USER: miniouser
MINIO_ROOT_PASSWORD: miniopass
expose:
- 9000
- 9001
entrypoint: ""
command: [ "minio", "server", "/data" ]
ports:
- 9000
depends_on:
- neo4j
- data-service-dev-db
neo4j:
image: ghcr.io/darpa-askem/data-service-graphdb:5.3.0.3
expose:
- 7474
- 7687
environment:
- NEO4J_PLUGINS=["apoc"]
- apoc.import.file.enabled=true
- NEO4J_AUTH=neo4j/password
- NEO4J_dbms_memory_pagecache_size=512M
- PG_HOST=data-service-dev-db
- PG_PORT=5432
depends_on:
- data-service-dev-db
data-service-dev-db:
image: ghcr.io/darpa-askem/data-service-dev-db:latest
expose:
- 5432
environment:
- POSTGRES_PASSWORD=dev
- POSTGRES_USER=dev
- POSTGRES_DB=askem
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U dev -d askem" ]
interval: 10s
timeout: 5s
retries: 5
elasticsearch:
image: elasticsearch:8.5.3
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- xpack.security.enabled=false
- action.auto_create_index=false
ports:
- 9200
healthcheck:
test: curl http://localhost:9200/_cluster/health?wait_for_status=yellow || exit 1
interval: 10s
timeout: 20s
retries: 5
data-service-migrations:
image: ghcr.io/darpa-askem/data-service:latest
command: [ '/api/migrations/run_migrations.sh' ]
environment:
- DATASET_STORAGE_BASE_URL=s3://datasets/
- STORAGE_HOST=http://minio:9000
- S3_BUCKET=askem
- S3_DATASET_PATH=datasets
- S3_RESULT_PATH=simulations
- OPENAI_KEY=sk
- SQL_URL=data-service-dev-db
- SQL_PORT=5432
- SQL_USER=dev
- SQL_PASSWORD=dev
- SQL_DB=askem
- NEO4J_ENABLED=true
- NEO4J_driver=neo4j://neo4j:7687
- AWS_ACCESS_KEY_ID=miniouser
- AWS_SECRET_ACCESS_KEY=miniopass
- ES_INDEX_PREFIX=tds_
- ES_URL=http://elasticsearch:9200
- ES_USERNAME=tds
- ES_PASSWORD=tdsElasticPass
- ELASTIC_PASSWORD=tdsElasticPass
- KIBANA_PASSWORD=tdsKibanaPass
- SEED_DATA=false
depends_on:
data-service-dev-db:
condition: service_healthy
elasticsearch:
condition: service_healthy
minio:
condition: service_started
redis:
image: redis:7.0.12-alpine
ports:
- 6379
rabbitmq:
image: rabbitmq:3.11.13-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=rmq_user
- RABBITMQ_DEFAULT_PASS=rmq_pass
- RABBITMQ_MANAGEMENT_ENABLED=false
ports:
- 5672
pyciemss-api:
image: ghcr.io/darpa-askem/pyciemss-api:latest
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- TDS_URL
ports:
- 8001:8000
depends_on:
data-service:
condition: service_started
redis:
condition: service_started
healthcheck:
test: curl http://localhost:8000/ || exit 1
interval: 10s
timeout: 20s
retries: 30
pyciemss-worker:
image: ghcr.io/darpa-askem/pyciemss-worker:latest
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- TDS_URL
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
- RABBITMQ_USERNAME=rmq_user
- RABBITMQ_PASSWORD=rmq_pass
ports:
- 8080
depends_on:
pyciemss-api:
condition: service_started
sciml-service:
image: ghcr.io/darpa-askem/sciml-service:latest
environment:
- SIMSERVICE_TDS_URL
- ENABLE_REMOTE_DATA_HANDLING=false
ports:
- 8080
depends_on:
data-service:
condition: service_started
healthcheck:
test: curl http://localhost:8080/ || exit 1
interval: 10s
timeout: 20s
retries: 30
dashboard:
image: ghcr.io/darpa-askem/integration-dashboard:latest
environment:
- AWS_ACCESS_KEY_ID=none
- AWS_SECRET_ACCESS_KEY=none
- BUCKET=none
- USE_LOCAL=TRUE
expose:
- 8501
ports:
- 8501:8501
volumes:
- report:/outputs
tests:
build:
context: .
dockerfile: tests/Dockerfile
environment:
- UPLOAD=FALSE
- BUCKET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- TDS_URL
- PROJECT_ID
depends_on:
pyciemss-api:
condition: service_healthy
pyciemss-worker:
condition: service_started
sciml-service:
condition: service_healthy
volumes:
- report:/outputs
volumes:
report: