-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathdocker-compose.yml
92 lines (87 loc) · 2.04 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
services:
web:
image: ostis/sc-web:prerelease-0.8.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.1.0
build:
context: ./
dockerfile: ./Dockerfile
container_name: nika-problem-solver
restart: unless-stopped
volumes:
- ./kb:/nika/kb
- 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 /tmp/problem-solver/sc-machine/.venv/bin/activate && python3 /nika/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=/nika/bin"
- "BUILD_PATH=/nika/build"
- "CONFIG_PATH=/nika/nika.ini"
- "KB_PATH=../repo.path"
command:
- "serve"
nika-ui:
image: ostis/nika-ui:0.1.0
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.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:
- nika
volumes:
kb-binary: {}
networks:
nika: {}