forked from DougTrajano/mlflow-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 1.32 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
version: "3.9"
services:
postgres:
image: postgres:14.2-alpine3.15
restart: unless-stopped
ports:
- ${POSTGRES_PORT-5432}:${POSTGRES_PORT-5432}
volumes:
- postgres-db-volume:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${POSTGRES_DB_NAME-postgres}
POSTGRES_USER: ${POSTGRES_USER-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD-postgres}
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 5s
retries: 5
mlflow:
container_name: mlflow
build:
context: .
ports:
- ${MLFLOW_PORT-80}:${MLFLOW_PORT-80}
depends_on:
- postgres
environment:
PORT: ${MLFLOW_PORT-80}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
MLFLOW_ARTIFACT_URI: ${MLFLOW_ARTIFACT_URI-./mlruns}
MLFLOW_DB_DATABASE: ${POSTGRES_DB_NAME-postgres}
MLFLOW_DB_DIALECT: postgresql
MLFLOW_DB_HOST: postgres
MLFLOW_DB_PASSWORD: ${POSTGRES_PASSWORD-postgres}
MLFLOW_DB_PORT: ${POSTGRES_PORT-5432}
MLFLOW_DB_USERNAME: ${POSTGRES_USER-postgres}
MLFLOW_TRACKING_PASSWORD: ${MLFLOW_TRACKING_PASSWORD-mlflow}
MLFLOW_TRACKING_USERNAME: ${MLFLOW_TRACKING_USERNAME-mlflow}
MLFLOW_SQLALCHEMYSTORE_POOL_CLASS: NullPool
volumes:
postgres-db-volume: