forked from burakince/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.aws-mysql-test.yaml
67 lines (62 loc) · 1.57 KB
/
docker-compose.aws-mysql-test.yaml
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
version: "3.8"
services:
minio:
container_name: minio-mysql-test
hostname: minio
image: minio/minio:${MINIO_VERSION}
entrypoint: sh
command: -c 'mkdir -p /data/mlflow && minio server /data --console-address ":9001"'
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-mysql-storage:/data
networks:
- aws_mysql_test_nw
mysql:
image: "mysql:${MYSQL_VERSION}"
container_name: mlflow-aws-mysql-db
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: mlflow
MYSQL_USER: mlflow
MYSQL_PASSWORD: password
MYSQL_TCP_PORT: 3306
ports:
- "3306:3306"
volumes:
- mysql-aws-storage:/var/lib/mysql
networks:
- aws_mysql_test_nw
mlflow:
container_name: mlflow-aws-mysql-test
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=5000"
environment:
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
ports:
- "5000:5000"
networks:
- aws_mysql_test_nw
volumes:
- mlflow-aws-mysql-storage:/mlflow
depends_on:
- minio
- mysql
volumes:
mysql-aws-storage:
driver: local
mlflow-aws-mysql-storage:
driver: local
minio-mysql-storage:
driver: local
networks:
aws_mysql_test_nw:
driver: bridge