forked from ostis-ai/sc-machine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 801 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 801 Bytes
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
services:
machine:
image: ostis/sc-machine:latest
build:
context: .
volumes:
- ./kb:/kb
- kb-binary:/kb.bin
networks:
- sc-machine
ports:
- "8090:8090"
healthcheck:
test: "/sc-machine/scripts/healthcheck.sh"
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=${REBUILD_KB:-0}"
- "KB_PATH=${KB_PATH:-/kb}"
- "BINARY_PATH=/sc-machine/build/Release/bin"
- "EXTENSIONS_PATH=/sc-machine/build/Release/lib/extensions"
- "CONFIG_PATH=/sc-machine/sc-machine.ini"
- "SC_SERVER_HOST=0.0.0.0"
command:
- "run"
volumes:
kb-binary: {}
networks:
sc-machine: {}