-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (48 loc) · 1.29 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
# Credit: https://github.com/itdxer/klarna-task
version: "3.4"
services:
credit-risk-modelling-base:
build: .
image: ${DOCKER_REGISTRY}/credit-risk-modelling
rest-api-prod:
image: ${DOCKER_REGISTRY}/credit-risk-modelling
depends_on:
- credit-risk-modelling-base
command: python src/server.py
environment:
- RUN_PROD=1
ports:
- "80:80"
rest-api:
image: ${DOCKER_REGISTRY}/credit-risk-modelling
depends_on:
- credit-risk-modelling-base
command: python src/server.py
ports:
- "5001:5000"
volumes:
- .:/home/project
train-model:
image: ${DOCKER_REGISTRY}/credit-risk-modelling
depends_on:
- credit-risk-modelling-base
command: python src/train.py
--input-csv /home/project/data/raw/dataset.csv
--output-model /home/project/models/model.joblib
--output-test-pred /home/project/data/predictions/test_predictions.csv
volumes:
- .:/home/project
notebook:
image: ${DOCKER_REGISTRY}/credit-risk-modelling
depends_on:
- credit-risk-modelling-base
command: jupyter notebook
--notebook-dir=/home/project/notebooks/exploration
--ip 0.0.0.0
--no-browser
--allow-root
--port 8899
ports:
- "8899:8899"
volumes:
- .:/home/project