-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.azure-mysql-test.yaml
69 lines (64 loc) · 2.13 KB
/
docker-compose.azure-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
68
69
version: "3.8"
services:
azurite:
container_name: azurite-mysql-test
hostname: azurite
build:
context: test-containers/azurite
dockerfile: Dockerfile
command: sh -c "sh /run.sh | azurite -l /data --blobHost 0.0.0.0 --queueHost 0.0.0.0 --loose --skipApiVersionCheck"
environment:
AZURE_STORAGE_ACCOUNT: devstoreaccount1
AZURE_STORAGE_ACCESS_KEY: Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
COMMA_SEPARATED_CONTAINER_NAMES: "mlflow"
ports:
- "10000:10000"
- "10001:10001"
volumes:
- azurite-mysql-storage:/data
- ./test-containers/azurite/create-container.js:/create-container.js
- ./test-containers/azurite/run.sh:/run.sh
networks:
- azure_mysql_test_nw
mysql:
image: "mysql:${MYSQL_VERSION}"
container_name: mlflow-azure-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-azure-storage:/var/lib/mysql
networks:
- azure_mysql_test_nw
mlflow:
container_name: mlflow-azure-mysql-test
build:
context: .
dockerfile: Dockerfile
command: "mlflow server --backend-store-uri=mysql+pymysql://mlflow:password@mysql:3306/mlflow --default-artifact-root=wasbs://mlflow@devstoreaccount1.blob.core.windows.net --host=0.0.0.0 --port=5000"
environment:
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1
ports:
- "5000:5000"
networks:
- azure_mysql_test_nw
volumes:
- mlflow-azure-mysql-storage:/mlflow
depends_on:
- azurite
- mysql
volumes:
mysql-azure-storage:
driver: local
mlflow-azure-mysql-storage:
driver: local
azurite-mysql-storage:
driver: local
networks:
azure_mysql_test_nw:
driver: bridge