-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (73 loc) · 2.1 KB
/
docker-compose.yaml
File metadata and controls
77 lines (73 loc) · 2.1 KB
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.8'
services:
source:
image: postgres:13
command: ['postgres', '-c', 'wal_level=logical']
container_name: source
healthcheck:
test: ['CMD', 'psql', '-U', 'tenant', '-c', 'SELECT 1']
interval: 10s
timeout: 5s
retries: 5
ports:
- "${POSTGRES_PORT}:5432"
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- source_data:/var/lib/postgresql/data
s3:
image: minio/minio:RELEASE.2025-01-20T14-49-07Z-cpuv1
ports:
- "${MINIO_PORT}:9000"
- "${MINIO_CONSOLE_PORT}:9001"
volumes:
- minio_storage:/data
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
command: server --console-address ":9001" /data
createbuckets:
image: minio/mc
depends_on:
- s3
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://minio:9000 minio_access_key minio_secret_key;
/usr/bin/mc mb myminio/emotiai;
/usr/bin/mc mb myminio/mlflow;
/usr/bin/mc policy set public myminio/emotiai;
/usr/bin/mc policy set public myminio/mlflow;
exit 0;
"
tracking_server:
restart: always
build:
context: .
dockerfile: dockerfile.mlflow
image: mlflow_server
container_name: mlflow_server
depends_on:
- source
ports:
- "${MLFLOW_PORT}:5000"
environment:
- AWS_ACCESS_KEY_ID=${MINIO_ACCESS_KEY}
- AWS_SECRET_ACCESS_KEY=${MINIO_SECRET_KEY}
- MLFLOW_S3_ENDPOINT_URL=http://s3:${MINIO_PORT}
- MLFLOW_S3_IGNORE_TLS=true
command: >
mlflow server
--backend-store-uri postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DOCKER_NETWORK_IP}:${POSTGRES_PORT}/${POSTGRES_DB}
--host 0.0.0.0
--serve-artifacts
--artifacts-destination s3://${MLFLOW_ARTIFACTS_DESTINATION}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:${MLFLOW_PORT}/"]
interval: 30s
timeout: 10s
retries: 3
volumes:
source_data:
minio_storage: