-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
46 lines (44 loc) · 1.04 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
services:
server:
build: .
working_dir: /usr/src/app
ports:
- "8000:5000"
volumes:
- .:/usr/src/app
healthcheck:
test: ["CMD", "curl", "-f", "http://0.0.0.0:5000"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
restart: on-failure
command: runServer.sh
trainmodel: #
build: .
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
links:
- "server:localhost"
depends_on:
server:
condition: service_healthy
command: ["python", "clf-train-registry.py", "clf-model", "http://server:5000", "--outputTestData", "test.csv"]
servemodel:
build: .
depends_on:
trainmodel:
condition: service_completed_successfully
server:
condition: service_healthy
working_dir: /usr/src/app
ports:
- "1234:1234"
volumes:
- .:/usr/src/app
links:
- "server:server"
environment:
- MLFLOW_TRACKING_URI=http://server:5000
command: ["serveModel.sh", "models:/clf-model@Staging"]