-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose.yml
74 lines (70 loc) · 1.68 KB
/
docker-compose.yml
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
services:
web:
image: ostis/sc-web:prerelease-0.8.0
build:
context: ./sc-web
dockerfile: ./Dockerfile
container_name: ostis-ann-sc-web
restart: unless-stopped
ports:
- "8000:8000"
expose:
- 8000
networks:
- ostis-ann
command:
- "--server-host=problem-solver"
depends_on:
problem-solver:
condition: service_healthy
problem-solver:
image: ostis/ostis-ann:0.1.0
build:
context: ./
dockerfile: ./Dockerfile
container_name: ostis-ann-problem-solver
restart: unless-stopped
volumes:
- ./kb:/ostis-ann/kb
- kb-binary:/ostis-ann/kb.bin
- ./repo.path:/ostis-ann/repo.path
- ./ostis-ann.ini:/ostis-ann/ostis-ann.ini
networks:
- ostis-ann
ports:
- "8090:8090"
expose:
- 8090
healthcheck:
test: "python3 /ostis-ann/problem-solver/sc-machine/scripts/healthcheck.py"
interval: 5s
timeout: 10s
retries: 6
start_period: 120s
environment:
# Use the commented env variable if you need to rebuild KB every startup.
- "REBUILD_KB=1"
- "BINARY_PATH=/ostis-ann/bin"
- "BUILD_PATH=/ostis-ann/build"
- "CONFIG_PATH=/ostis-ann/ostis-ann.ini"
- "KB_PATH=../repo.path"
command:
- "serve"
py-sc-server:
image: ostis/ostis-ann-py-agents:0.1.0
build:
context: ./
dockerfile: ./problem-solver/py/Dockerfile
container_name: py-sc-server
restart: unless-stopped
depends_on:
problem-solver:
condition: service_healthy
command:
- "--host=problem-solver"
networks:
- ostis-ann
volumes:
kb-binary: {}
networks:
ostis-ann: {}