-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
69 lines (65 loc) · 1.94 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
58
59
60
61
62
63
64
65
66
67
68
69
version: '3'
services:
postgres:
build:
context: platform/postgres
dockerfile: Dockerfile
container_name: postgres
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
- "5432:5432"
volumes:
- ./${POSTGRES_STORAGE}/:/var/lib/postgresql/data
mlflow:
build:
context: platform/mlflow
dockerfile: Dockerfile
container_name: mlflow
expose:
- ${MLFLOW_EXPOSE_PORT}
ports:
- "5000:5000"
depends_on:
- postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./${ARTIFACTS_DIR}/:/mlflow
jupyter_notebook:
build:
context: platform/notebook
dockerfile: Dockerfile
container_name: jupyter_notebook
ports:
- "8888:8888"
depends_on:
- mlflow
environment:
MLFLOW_TRACKING_URI: ${MLFLOW_TRACKING_URI}
MLFLOW_EXPERIMENT_NAME: ${MLFLOW_EXPERIMENT_NAME}
MLFLOW_KERAS_MODEL_LOG: ${MLFLOW_KERAS_MODEL_LOG}
MLFLOW_KERAS_AUTO_LOG: ${MLFLOW_KERAS_AUTO_LOG}
MLFLOW_LOG_PARAMS: ${MLFLOW_LOG_PARAMS}
TENSORBOARD_SCALAR_LOGS: ${TENSORBOARD_SCALAR_LOGS}
TENSORBOARD_IMAGES_DISPLAY: ${TENSORBOARD_IMAGES_DISPLAY}
TENSORBOARD_CONFUSION_MATRIX: ${TENSORBOARD_CONFUSION_MATRIX}
TENSORBOARD_LOGS_DIR: ${TENSORBOARD_LOGS_DIR}
volumes:
- ./${APP_DIR}/:${NOTEBOOK_WORKSPACE}/${APP_DIR}
- ./${DATA_DIR}/:${NOTEBOOK_WORKSPACE}/${DATA_DIR}
- ./${ARTIFACTS_DIR}/:/mlflow
- ./${TENSORBOARD_LOGS_DIR}/:${NOTEBOOK_WORKSPACE}/${TENSORBOARD_LOGS_DIR}
tensorboard:
build:
context: platform/tensorflow
dockerfile: Dockerfile
container_name: tensorboard
volumes:
- ./${TENSORBOARD_LOGS_DIR}/:/${TENSORBOARD_LOGS_DIR}/
ports:
- 6006:6006
command: tensorboard --logdir=/${TENSORBOARD_LOGS_DIR}/