Repository navigation
Expand file tree
/
Copy pathdocker-compose.aws-postgres-test.yaml
More file actions
73 lines (70 loc) · 1.97 KB
/
Copy pathdocker-compose.aws-postgres-test.yaml
File metadata and controls
73 lines (70 loc) · 1.97 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
services:
minio:
container_name: minio-pg-test
hostname: minio
image: minio/minio:${MINIO_VERSION}
entrypoint: sh
command: -c 'mkdir -p /data/mlflow && minio server /data --console-address ":9001"'
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "0:9000"
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:9000/minio/health/live || exit 1"]
interval: 5s
timeout: 10s
retries: 3
start_period: 5s
networks:
- aws_pg_test_nw
postgres:
image: "postgres:${POSTGRES_VERSION}"
container_name: mlflow-aws-postgres-db
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 5s
timeout: 10s
retries: 3
start_period: 5s
networks:
- aws_pg_test_nw
mlflow:
container_name: mlflow-aws-pg-test
build:
context: .
dockerfile: "Dockerfile-${DISTRO:-debian}"
command: "mlflow server --backend-store-uri=postgresql:// --default-artifact-root=s3://mlflow/ --host=0.0.0.0 --port=8080"
environment:
MLFLOW_FLASK_SERVER_SECRET_KEY: 0123456789
MLFLOW_S3_ENDPOINT_URL: http://minio:9000
MLFLOW_DISABLE_TELEMETRY: "true"
DO_NOT_TRACK: "true"
AWS_ACCESS_KEY_ID: minioadmin
AWS_SECRET_ACCESS_KEY: minioadmin
PGHOST: postgres
PGPORT: 5432
PGDATABASE: postgres
PGUSER: postgres
PGPASSWORD: postgres
ports:
- "0:8080"
healthcheck:
test: ["CMD", "/opt/venv/bin/python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 10s
timeout: 10s
retries: 15
start_period: 60s
networks:
- aws_pg_test_nw
depends_on:
minio:
condition: service_healthy
postgres:
condition: service_healthy
networks:
aws_pg_test_nw:
driver: bridge