forked from fabianmax/car-classification
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (80 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
85 lines (80 loc) · 2.08 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: "3.7"
services:
tfserving:
image: tensorflow/serving
container_name: car-classifier.predictions
ports:
- 8501:8501
networks:
network-car-classifier:
aliases:
- tf_serving
volumes:
- ./model/:/models/resnet_unfreeze_all_filtered/1
environment:
- MODEL_NAME=resnet_unfreeze_all_filtered
explainability:
image: car-classifier/explainability
container_name: car-classifier.explainability
build:
context: ./car_classifier
dockerfile: Dockerfile
ports:
- 5000:5000
networks:
network-car-classifier:
aliases:
- explainability
volumes:
- ./model/classes.pickle:/models/resnet_unfreeze_all_filtered/1/classes.pickle
- ./model/saved_model.pb:/models/resnet_unfreeze_all_filtered/1/model/saved_model.pb
- ./model/variables/:/models/resnet_unfreeze_all_filtered/1/model/variables
dashboard:
image: car-classifier/dashboard
container_name: car-classifier.dashboard
depends_on:
- nginx
- tfserving
- explainability
build:
context: ./dashboard
dockerfile: Dockerfile
ports:
- 8050:8050
networks:
- network-car-classifier
environment:
- IS_IN_DOCKER=True
restart: on-failure
nginx:
image: nginx
container_name: car-classifier.webserver
ports:
- 1234:80
networks:
network-car-classifier:
aliases:
- nginx
volumes:
- ./data/images/:/usr/share/nginx/html:ro
- ./dashboard/nginx.conf:/etc/nginx/nginx.conf:ro
#dashboard-shiny-proxy:
# image: car-classifier/dashboard-shiny-proxy
# container_name: car-classifier.dashboard-shiny-proxy
# depends_on:
# - nginx
# - tfserving
# - explainability
# build:
# context: ./dashboard/shinyproxy
# dockerfile: Dockerfile
# ports:
# - 8080:8080
# networks:
# - network-car-classifier
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# restart: on-failure
networks:
network-car-classifier:
name: network-car-classifier