forked from savushkin-r-d/industry-demo-ostis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·48 lines (45 loc) · 1.02 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
services:
web:
image: ostis/sc-web:0.8.0-Fusion
build:
context: ./ostis-web-platform/sc-web
restart: unless-stopped
ports:
- "8000:8000"
networks:
- sc-machine
command:
- "--server-host=machine"
depends_on:
machine:
condition: service_healthy
machine:
image: ostis/sc-machine:0.8.0-Fusion
build:
context: ./
restart: unless-stopped
volumes:
- ./:/kb
- kb-binary:/kb.bin
networks:
- sc-machine
ports:
- "8090:8090"
healthcheck:
test: "python3 /example-app/ostis-web-platform/sc-machine/scripts/healthcheck.py"
interval: 5s
timeout: 10s
retries: 3
start_period: 120s
environment:
# Use the commented env variable if you need to rebuild KB every startup.
#- "REBUILD_KB=1"
- "KB_PATH=/kb/repo.path"
- "BINARY_PATH=/example-app/bin"
- "CONFIG_PATH=/kb/ostis-example-app.ini"
command:
- "serve"
volumes:
kb-binary: {}
networks:
sc-machine: {}