-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (70 loc) · 1.55 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3.7'
services:
test-pydvtd:
build:
context: .
dockerfile: docker/python/Dockerfile
image: test-pydvtd
depends_on:
- mlflow
env_file:
- .env
volumes:
- my-mlflow-volume:/${MLFLOW_ARTIFACT_STORE}:z
entrypoint:
[
"python",
"-m",
"pytest",
"-p",
"no:warnings",
"--tb=auto",
"-vv",
"tests",
"-ra"
]
mlflow:
env_file:
- .env
build:
context: ../mlflow/docker
dockerfile: Dockerfile
image: mlflow
expose:
- "${MLFLOW_TRACKING_SERVER_PORT}"
ports:
- "${MLFLOW_TRACKING_SERVER_PORT}:${MLFLOW_TRACKING_SERVER_PORT}"
depends_on:
- postgres
volumes:
- my-mlflow-volume:/${MLFLOW_ARTIFACT_STORE}:z
entrypoint:
[
"mlflow",
"server",
"--backend-store-uri",
"postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${MLFLOW_BACKEND_STORE}:${POSTGRES_PORT}/${POSTGRES_DATABASE}",
"--default-artifact-root",
"/${MLFLOW_ARTIFACT_STORE}",
"--host",
"${MLFLOW_TRACKING_SERVER_HOST}",
"--port",
"${MLFLOW_TRACKING_SERVER_PORT}"
]
postgres:
env_file:
- .env
build:
context: ./docker/postgres
dockerfile: Dockerfile
image: postgres
restart: always
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
volumes:
- my-postgres-volume:/var/lib/postgresql/data:z
volumes:
my-postgres-volume:
external: false
my-mlflow-volume:
external: false