-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (41 loc) · 1002 Bytes
/
docker-compose.yaml
File metadata and controls
42 lines (41 loc) · 1002 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
35
36
37
38
39
40
41
42
# https://docs.docker.com/compose/compose-file/compose-file-v3/
version: "3.7"
services:
tf_serving_backend:
image: tensorflow/serving
container_name: tf_serving_backend
ports:
- "8501:8501"
environment:
- MODEL_NAME=unet
# Enable request logging
- TF_CPP_VMODULE=http_server=1
volumes:
- type: bind
source: ./demo/models/unet/
target: /models/unet
volume:
nocopy: true
- type: bind
source: ./demo/models/segnet/
target: /models/segnet
volume:
nocopy: true
flask_frontend:
build: demo/flask_server
container_name: flask_frontend
environment:
DEBUG: ${DEBUG}
SERVING_CONTAINER: tf_serving_backend
SERVING_PORT: 8501
ports:
- 80:80
- 5000:5000
volumes:
- type: bind
source: ./${DATASET_DIR}/
target: /usr/src/app/dataset/
volume:
nocopy: true
depends_on:
- tf_serving_backend