-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
77 lines (72 loc) · 1.71 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
70
71
72
73
74
75
76
77
version: '3.3'
services:
server:
hostname: mlflow-server
build:
dockerfile: Dockerfile
context: .
ports:
- "5000:5000"
environment:
- AWS_ACCESS_KEY_ID=my_access_keymy_secret_key
- AWS_SECRET_ACCESS_KEY=my_secret_key
- MLFLOW_BACKEND_STORE_URI=postgresql+psycopg2://mlflow:mlflow123@postgres:5432/mlflow
- MLFLOW_DEFAULT_ARTIFACT_ROOT=s3://mlflow-artifacts
- MLFLOW_S3_ENDPOINT_URL=http://minio:9000
- GUNICORN_TIMEOUT=600
- ENABLE_AUTO_DB_MIGRATIONS=1
depends_on:
- db
- createbuckets
db:
image: postgres:14.2-alpine
hostname: postgres
ports:
- '5432:5432'
environment:
- POSTGRES_USER=mlflow
- POSTGRES_PASSWORD=mlflow123
- POSTGRES_DB=mlflow
minio:
image: minio/minio:latest
container_name: minio
environment:
- MINIO_SECRET_KEY=my_secret_key
- MINIO_ACCESS_KEY=my_access_key
command: minio server /minio --console-address ":9001"
ports:
- 9000:9000
- 9001:9001
healthcheck:
test:
[
"CMD",
"curl",
"-f",
"http://127.0.0.1:9000/minio/health/live"
]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 my_access_key my_secret_key;
/usr/bin/mc mb myminio/mlflow-artifacts;
/usr/bin/mc policy set public myminio/mlflow-artifacts;
exit 0;
"
nginx:
image: nginx
hostname: nginx
ports:
- "5555:80"
depends_on:
- server
links:
- server
volumes:
- ./config:/etc/nginx