-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
44 lines (41 loc) · 1.11 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
version: '3.3'
services:
object-detector-python:
image: ${APP_NAME}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100k"
environment:
- PYTHONUNBUFFERED=1
- INFERENCE_HOST=unix:///tmp/acap-runtime.sock
- INFERENCE_PORT=0
- MODEL_PATH=${MODEL_PATH}
- OBJECT_LIST_PATH=/models/coco_labels.txt
volumes:
- acap_dl-models:/models:ro
- /tmp:/output
- inference-server:/tmp
inference-server:
image: ${INFERENCE_SERVER_IMAGE}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "100k"
entrypoint: ["/opt/app/acap_runtime/acapruntime", "-m", "${MODEL_PATH}", "-j", "${INFERENCE_CHIP}"]
volumes:
- acap_dl-models:/models:ro
- /run/dbus/system_bus_socket:/run/dbus/system_bus_socket
- /run/parhand/parhandsocket:/run/parhand/parhandsocket
- /usr/lib:/usr/lib
- /usr/bin:/usr/bin
- inference-server:/tmp
acap_dl-models:
image: ${MODEL_NAME}
volumes:
- acap_dl-models:/models
volumes:
acap_dl-models: {}
inference-server: {}