-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
32 lines (29 loc) · 936 Bytes
/
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
version: '3.5'
services:
mysql:
restart: always
image: mysql/mysql-server:5.7.28
container_name: mlflow_db
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- mysql-volume:/var/lib/mysql
mlflow:
restart: always
build: .
image: mlflow_server
container_name: mlflow_server
ports:
- "5000:5000"
volumes:
- ./mlruns:/mlruns # local Folder "mlruns" is the Artifact Storage
depends_on:
- mysql
command: --backend-store-uri mysql+pymysql://${MYSQL_USER}:${MYSQL_PASSWORD}@mysql:3306/${MYSQL_DATABASE} --default-artifact-root ./mlruns --host 0.0.0.0
volumes:
mysql-volume: