-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (63 loc) · 1.67 KB
/
docker-compose.yml
File metadata and controls
68 lines (63 loc) · 1.67 KB
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
version: "3"
services:
proxy:
container_name: proxy
image: shibui/ml-system-in-actions:sync_async_pattern_sync_async_proxy_0.0.1
restart: always
environment:
- PLATFORM=docker_compose
- QUEUE_NAME=tfs_queue
- REST_MOBILENET_V2=sync:8501
- REST_INCEPTION_V3=async:8601
- GRPC_MOBILENET_V2=sync:8500
- GRPC_INCEPTION_V3=async:8600
ports:
- "8000:8000"
command: ./run.sh
depends_on:
- redis
- sync
- async
- backend
sync:
container_name: sync
image: shibui/ml-system-in-actions:sync_async_pattern_imagenet_mobilenet_v2_0.0.1
restart: always
environment:
- PORT=8500
- REST_API_PORT=8501
ports:
- "8500:8500"
- "8501:8501"
entrypoint: ["/usr/bin/tf_serving_entrypoint.sh"]
async:
container_name: async
image: shibui/ml-system-in-actions:sync_async_pattern_imagenet_inception_v3_0.0.1
restart: always
environment:
- PORT=8600
- REST_API_PORT=8601
ports:
- "8600:8600"
- "8601:8601"
entrypoint: ["/usr/bin/tf_serving_entrypoint.sh"]
backend:
container_name: backend
image: shibui/ml-system-in-actions:sync_async_pattern_sync_async_backend_0.0.1
restart: always
environment:
- PLATFORM=docker_compose
- QUEUE_NAME=tfs_queue
- REST_MOBILENET_V2=sync:8501
- REST_INCEPTION_V3=async:8601
- GRPC_MOBILENET_V2=sync:8500
- GRPC_INCEPTION_V3=async:8600
entrypoint:
["python", "-m", "src.api_composition_proxy.backend.prediction_batch"]
depends_on:
- redis
redis:
container_name: redis
image: "redis:latest"
ports:
- "6379:6379"