-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (88 loc) · 2.16 KB
/
docker-compose.yml
File metadata and controls
93 lines (88 loc) · 2.16 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
services:
web:
image: ostis/sc-web:0.9.0
build:
context: ./sc-web
dockerfile: ./Dockerfile
container_name: nika-sc-web
restart: unless-stopped
ports:
- "8000:8000"
expose:
- 8000
networks:
- nika
command:
- "--server-host=problem-solver"
depends_on:
problem-solver:
condition: service_healthy
problem-solver:
image: ostis/nika:0.2.2
build:
context: ./
dockerfile: ./Dockerfile
container_name: nika-problem-solver
restart: unless-stopped
volumes:
- ./knowledge-base:/nika/knowledge-base
- kb-binary:/nika/kb.bin
- ./repo.path:/nika/repo.path
- ./nika.ini:/nika/nika.ini
networks:
- nika
ports:
- "8090:8090"
expose:
- 8090
healthcheck:
test: "bash -c 'source /nika/.venv/bin/activate && python3 /nika/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=/nika/install/sc-machine/bin"
- "CONFIG_PATH=/nika/nika.ini"
- "KB_PATH=/nika/repo.path"
- "EXTENSIONS_PATH=/nika/build/Release/lib/extensions;/nika/install/sc-machine/lib/extensions;/nika/install/scl-machine/lib/extensions"
- "SC_SERVER_HOST=0.0.0.0"
command:
- "run"
nika-ui:
image: ostis/nika-ui:0.2.2
build:
context: ./interface
dockerfile: ./Dockerfile
container_name: nika-ui
restart: unless-stopped
ports:
- "3033:8080"
networks:
- nika
environment:
- SOCKET_URL=ws://problem-solver:8090
- SC_URL=ws://problem-solver:8090
- SC_WEB_URL=http://web:8000
depends_on:
- web
py-sc-server:
image: ostis/nika-py-agents:0.2.2
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:
- nika
volumes:
kb-binary: {}
networks:
nika: {}