-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.34 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
version: '3.8'
services:
localstack:
image: localstack/localstack:latest
ports:
- "4566:4566"
environment:
- SERVICES=s3,dynamodb,sagemaker,lambda,kinesis,secretsmanager,cloudwatch
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
volumes:
- "./tmp/localstack:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
postgres:
image: postgres:14
environment:
POSTGRES_DB: mlops
POSTGRES_USER: mlops_user
POSTGRES_PASSWORD: mlops_pass
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --appendonly yes
volumes:
- redis_data:/data
mlflow:
image: ghcr.io/mlflow/mlflow:latest
ports:
- "5000:5000"
environment:
- BACKEND_STORE_URI=postgresql://mlops_user:mlops_pass@postgres/mlops
- ARTIFACT_ROOT=s3://mlflow-artifacts/
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- MLFLOW_S3_ENDPOINT_URL=http://localstack:4566
depends_on:
- postgres
- localstack
command: >
mlflow server
--backend-store-uri postgresql://mlops_user:mlops_pass@postgres/mlops
--default-artifact-root s3://mlflow-artifacts/
--host 0.0.0.0
volumes:
postgres_data:
redis_data: