-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
94 lines (94 loc) · 2.42 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
93
94
version: "3"
#version: "3.7"
services:
facedetector:
build:
context: models/facedetector/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8500:8080
# device_requests:
# - capabilities:
# - "gpu"
fingerprinter:
image: tensorflow/serving:latest-gpu
restart: unless-stopped
ports:
- 8501:8501
volumes:
- ./models/fingerprinter/models/12:/models/fingerprinter/1
environment:
- MODEL_NAME=fingerprinter
# device_requests:
# - capabilities:
# - "gpu"
facecomparator:
build:
context: models/facecomparator/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8502:8080
environment:
- FACE_SERVICE_URL=http://faceservice:3000/api/v1/faces
- FINGERPRINT_THRESHOLD=570
- COMPARATOR_SHAPE=(256,)
env_file:
- database_config.env
depends_on:
- faceservice
faceservice:
build:
context: api/face-service/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8503:3000
environment:
- IMAGE_PROCESSOR_URL=http://imageprocessor:8080/api/v1/fingerprint
- COMPARATOR_URL=http://facecomparator:8080/v1/models/facecomparator
env_file:
- database_config.env
gateway:
build:
context: api/gateway/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8504:3000
environment:
- FACE_SERVICE_URL=http://faceservice:3000/
- VIDEO_DOWNSCALER_URL=http://videodownscaler:8080/
- IMAGE_PROCESSOR_URL= http://imageprocessor:8080/
env_file:
- database_config.env
videodownscaler:
build:
context: api/video-downscaler/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8505:8080
imageprocessor:
build:
context: api/image-processor/
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8506:8080
environment:
- FACEDETECTOR_URL=http://facedetector:8080/v1/models/facedetector:predict
- FINGERPRINTER_URL=http://fingerprinter:8501/v1/models/fingerprinter:predict
- COMPARATOR_URL=http://facecomparator:8080/v1/models/facecomparator:predict
- FACE_SERVICE_URL=http://faceservice:3000/api/v1/faces
depends_on:
- facedetector
- fingerprinter
- facecomparator
dashboard:
build:
context: ui/user-dashboard
dockerfile: Dockerfile
ports:
- 4000:80