-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
executable file
·54 lines (48 loc) · 1.3 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
version: '3.8'
volumes:
localstack-vol:
services:
mlflow-db:
image: postgres:16.2
environment:
POSTGRES_DB: mlflowdb
POSTGRES_USER: mlflow
POSTGRES_PASSWORD: password
ports:
- "5436:5432"
mlflow-server:
build:
context: ./src/dockerfiles/mlflow/
dockerfile: Dockerfile
container_name: mlflow_server
environment:
AWS_REGION: eu-west-3
AWS_DEFAULT_REGION: eu-west-3
AWS_ACCESS_KEY_ID: admin
AWS_SECRET_ACCESS_KEY: adminadmin
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
ports:
- "5000:5000"
command: mlflow server --host 0.0.0.0 --workers 1 --backend-store-uri postgresql://mlflow:password@mlflow-db:5432/mlflowdb --default-artifact-root s3://test-bucket/
minio:
image: minio/minio:RELEASE.2023-12-23T07-19-11Z
command: server /data --console-address ":9001"
ports:
- "9020:9000"
- "9021:9001"
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: adminadmin
MINIO_SITE_REGION: eu-west-3
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
echo sleep 30;
sleep 30;
/usr/bin/mc config host add myminio http://minio:9000 admin adminadmin;
/usr/bin/mc mb myminio/test-bucket;
exit 0;
"