-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.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
version: "3.4"
x-volumes:
&default-volumes
- "iris_model_vol:/home/app/model"
x-cap-drop:
&default-cap-drop
- CHOWN
- DAC_OVERRIDE
- FOWNER
x-security-opt:
&default-security-opt
- seccomp:"./security/seccomp-profile/seccomp_profile.json"
services:
iris_frontend:
build:
context: .
dockerfile: Dockerfile.frontend
target: frontend
ports:
- "4200:4200"
depends_on:
- iris_predictor
networks:
default:
aliases:
- frontend
cap_drop: *default-cap-drop
security_opt: *default-security-opt
iris_predictor:
build:
context: .
dockerfile: Dockerfile.model
target: predictor
ports:
- "5000:5000"
depends_on:
- iris_trainer
volumes: *default-volumes
networks:
default:
aliases:
- rest-api
cap_drop: *default-cap-drop
security_opt: *default-security-opt
iris_trainer:
build:
context: .
dockerfile: Dockerfile.model
target: trainer
volumes: *default-volumes
cap_drop: *default-cap-drop
security_opt: *default-security-opt
volumes:
iris_model_vol:
networks:
default: