forked from mooseetws/mooseetws-tensorflow-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (44 loc) · 1.05 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: "2.2"
services:
tensorflow-serving:
# if running on raspberry pi
#image: emacski/tensorflow-serving:latest-arm32v7
# if running on x86 pc or mac
image: tensorflow/serving:latest
container_name: "serve_base"
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
volumes:
- ./tensorflow-serving/models:/models
#- ./tensorflow-serving/models_config:/models/models.config
environment:
- MODEL_NAME=ssdlite_mobilenet_v2_coco_2018_05_09
ports:
- "8500:8500"
- "8501:8501"
healthcheck:
test:
[
"CMD",
"curl",
"--fail",
"http://localhost:8501/v1/models/ssdlite_mobilenet_v2_coco_2018_05_09",
]
interval: 10s
timeout: 10s
retries: 3
camera-feed:
build: ./camera-feed
container_name: "camera_feed"
cap_add:
- SYS_ADMIN
volumes:
- ./camera-feed/images:/images
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
ports:
- "5000:5000"