-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
72 lines (66 loc) · 1.54 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
version: "3.9"
services:
redis:
image: redis:7.2.3-alpine
container_name: das-redis
restart: always
command: redis-server --save 20 1 --loglevel warning
healthcheck:
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
mongodb:
image: mongo:latest
container_name: das-mongodb
restart: always
env_file:
- .env
healthcheck:
test:
[
"CMD",
"echo",
'db.runCommand("ping").ok',
"|",
"mongo",
"das-mongo:27017/test",
"--quiet",
]
interval: 10s
timeout: 10s
retries: 5
start_period: 40s
metta-parser:
image: trueagi/das:${DAS_METTA_PARSER_VERSION}-metta-parser
container_name: das-metta-parser
command: db_loader ${DAS_KNOWLEDGE_BASE}
volumes:
- ./examples/data:/tmp
env_file:
- .env
depends_on:
mongodb:
condition: service_healthy
redis:
condition: service_healthy
restart: on-failure
openfaas:
container_name: openfaas
privileged: true
build: .
volumes:
- type: bind
source: ./das-query-engine
target: /usr/local/function/das-query-engine
- type: bind
source: ${ATOMDB_PACKAGE_PATH:-/tmp}
target: /opt/repos/hyperon_das_atomdb
- type: bind
source: ${QUERY_ENGINE_PACKAGE_PATH:-/tmp}
target: /opt/repos/hyperon_das
ports:
- 8080:8080
env_file:
- .env